I thought this would be really simple but it\'s presenting some difficulties. If I have
std::string name = \"John\"; int age = 21;
How do I
#include template inline std::string to_string (const T& t) { std::stringstream ss; ss << t; return ss.str(); }
Then your usage would look something like this
std::string szName = "John"; int numAge = 23; szName += to_string(numAge); cout << szName << endl;
Googled [and tested :p ]