std::stringstream convertor(\"Tom Scott 25\"); std::string name; int age; convertor >> name >> age;
开发者_运维问答could anyone tell me or point me to a simple example of how to append an int to a stringstream containing the word \"Something\" (or any word)?stringstream ss;
I\'m writing simple code that will extract a bunch of name, int pairs from a file. I\'m modifying existing code that just uses: