fork(2) download
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4.  
  5. using namespace std;
  6. int main()
  7. {
  8. stringstream ss;
  9. ss << "Original string ";
  10. ss.str("Updated string ");
  11. ss << "sth else";
  12. cout << ss.str() << endl;
  13. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
sth elsestring