摘要:
//此题是easy题,比较简单,主要困难在考虑全输入的各种情况://1、开始的时候有空格等空白字符//2、开头有加减号//3、溢出(第一次写就是没有考虑到这个情况)//C代码int myAtoi(char* str) { int i=0; double result = 0; int IsNegative = 0; while(isspace(str[i... 阅读全文
posted @ 2016-03-22 20:36
第八片叶子
阅读(248)
评论(0)
推荐(0)