stringstream

May 19, 2014 at 9:27am
how can i add integer value to a stringstream or read an integer value from it?
May 19, 2014 at 9:36am
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.