把字符串转化成整数

  题目:git class Solution { public: int StrToInt(string str) { //字符串->整数,串不合法返回0 int flag=1; int i=0; if(str[i]=='+') { i++;
相关文章
相关标签/搜索