[ create a new paste ] login | about

Link: http://codepad.org/eW0uqVZD    [ raw code | output | fork ]

C++, pasted on Jul 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <sstream>
#include <iostream>

using namespace std;

int main(int argc, char**) {
stringstream ss;
ss << "foo";
cout << ss.str() << endl;
ss << "bar";
cout << ss.str() << endl;
cout << ss.str() << endl;
ss << "more";
cout << ss.str() << endl;
}


Output:
1
2
3
4
foo
foobar
foobar
foobarmore


Create a new paste based on this one


Comments: