Ok so im just playing around with stringstream so i can see how it works and all that, no im trying to take what the user inputs and save it to the stringstream and im close, it outputs what the user has but stops at the first whitespace, what am i doing wrong?
ss = strss.str();
strss >> ss; // remove this line and it will work
cout << ss << endl;
The first line above puts the contents of the string stream into the string. Then, the second line overwrites all of that and just reads in the contents up to the first whitespace (that's what the >> operator does).