摘要: IntroductionThe limits.h header determines various properties of the various variable types. The macros defined in this header limits the values of va... 阅读全文
posted @ 2014-10-29 22:44 yyxayz 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 要考虑的东西实在也挺多的。总结如下:1 前面空格分隔符号的时候2 第一个符号位处理+ -3 遇到非数字字符退出4 为正数的时候,大于INT_MAX上溢5 为负数的时候, 小于INT_MIN下溢6 为空字符串或者空指针的时候 1 int atoi(const char *str) 2 {... 阅读全文
posted @ 2014-10-29 22:43 yyxayz 阅读(311) 评论(0) 推荐(0) 编辑