I took this from: http://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/.
But this a great method to convert anything to string:
int i = 5;
std::string s;
std::stringstream out;
out << s =" out.str();" style="font-weight: bold;">
do not forget to include sstream
This entry was posted
on Tuesday, November 4, 2008
at Tuesday, November 04, 2008
and is filed under
Programming
. You can follow any responses to this entry through the
comments feed
.