C++ string& char
string转int 判断超出范围
if(count>INT_MAX/10||(count==INT_MAX/10 &&(a>INT_MAX%10))){
return sign==-1?INT_MIN:INT_MAX;
}
count = count*10+a;
找string里面的空格
string s;
s[i] == ' ';
if(count>INT_MAX/10||(count==INT_MAX/10 &&(a>INT_MAX%10))){
return sign==-1?INT_MIN:INT_MAX;
}
count = count*10+a;
string s;
s[i] == ' ';