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 #include #include using namespace std; string itos(int i) // convert int to string { stringstream s; s << i; return s.str(); }
Shamelessly stolen from http://www.research.att.com/~bs/bs_faq2.html.