std::to_string();
#include <sstream>

ostringstream strg;
strg << number;
string s1 = strg.str();

http://www.cplusplus.com/reference/string/to_string/

Categories:

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *