KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code: std::stringstream ss; ss << 1 << "a b c"; std::string result; ss >> result; std::cout << result << std::endl; I see "1a" instead of "1a b c". I read somewhere that I should have ss << std::noskip. But it doesn't help. Any idea? Thanks in advance.
Tags (comma-separated)
Save Edits
Cancel