摘要:
DE>#include<stdio.h>intatoi(constchar*str){intvalue=0;boolb_plus=true;//判断符号switch(*str)//过滤符号{case'+':str++;break;case'-':b_plus=false;str++;break;default:break;}while('\0'!=*str){value=(value*10)+(*str-'0');str++;}if(!b_plus)value=-value;returnvalue;}voidma 阅读全文
posted @ 2011-06-19 21:58
又是一年夏天
阅读(252)
评论(0)
推荐(0)

浙公网安备 33010602011771号