There are a few ways of doing that.
Keep minusing the value until
value%10 = 10
to get each of the values in ASCII. (C way)Use function
char*itoa(int value,char*string,int radix);
. ==Microsoft only==Use StringStream in
<sstream>
to do that. (C++ way)inline std::string its(int i){ std::stringstream s; s << i; return s.str(); }
2017/3/16 7:13