How to use C++ String Streams to append int?

c++, string, stringstream

Solution

stringstream ss;
ss << "Something" << 42;

For future reference, check this out.

http://www.cplusplus.com/reference/iostream/stringstream/

Problem

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)?

Original source