I created a stringstream but I don't know how to clear the memory.
I get 12;Code:stringstream sstring; int a = 12; int b = 14; sstring << a; cout << sstring.str();
I will get 1214. But I want 14. I tried sstring.flush(), but it did not work. Could someone please help out? Thanks in advance.Code:sstring << b; cout << sstring.str();