C语言面试题(一)字符串转换成整形
摘要:每天熟悉一道。。 int str2int(char *str) { #判断字符串首字母为正负,假设为正 bool minus=False; long long num=0; #判断字符串的符号 if (str!=NULL&&str!='\0')#判空 { if(*str='+') {str++;} 
        阅读全文
        
            posted @ 2016-03-20 19:03
            posted @ 2016-03-20 19:03