标签:c a int 文件 string c++
需要的头文件:#include<sstream>
操作:
string s1="124";
int x;
stringstream ss; ss<<s1; ss>>x;
C++中将string类型变量转换成int型变量,布布扣,bubuko.com
C++中将string类型变量转换成int型变量
原文地址:http://www.cnblogs.com/myyan/p/3744967.html