把字符串轉化成整數

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