c++ 字符串转数字

 

#字符串转整数
string ss="-99";
cout<< stoi(ss)<<endl;

 

posted @ 2019-06-27 23:45  anobscureretreat  阅读(603)  评论(0编辑  收藏  举报