C++ 11 数字转字符串新功能
作者:互联网
// 头文件 <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() 了...
标签:11,string,val,double,unsigned,long,C++,字符串 来源: https://www.cnblogs.com/wn2ln/p/16619778.html