需要的头文件:#include<sstream>
操作:
string s1="124";
int x;
stringstream ss; ss<<s1; ss>>x;
posted on 2014-05-22 09:23 月未央 阅读(471) 评论(0) 收藏 举报