stringstream

how can i add integer value to a stringstream or read an integer value from it?
1
2
3
4
5
6
7
8
std::stringstream ss;

// how can i add integer value to a stringstream ...
ss << 50;

// ... or read an integer value from it? 
int value;
ss >> value;
Topic archived. No new replies allowed.