string类型与int,float,double,long之间的转换
string 类型转换为数字
https://blog.csdn.net/michaelhan3/article/details/75667066
string a = "123.456";
stringstream ss;
double d;
ss<<a;
a>>d;
数字转换为string类型
x =123;
string strX =to_string(x)
https://blog.csdn.net/michaelhan3/article/details/75667066
string a = "123.456";
stringstream ss;
double d;
ss<<a;
a>>d;
x =123;
string strX =to_string(x)