// 头文件 <string>
string to_string (int val);
string to_string (long val);
string to_string (long long val);
string to_string (unsigned val);
string to_string (unsigned long val);
string to_string (unsigned long long val);
string to_string (float val);
string to_string (double val);
string to_string (long double val);
再也不用sprintf() 了…
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/282022.html