随笔分类 -  C 语言

摘要:一: 告警 1: 1-3_ls, 用了exit, 没有加头文件 warning: incompatibal implicit declaration of built-in function 'exit'. 二: 报错 2: 1-3_ls, 变量名使用错误, 没有声明 error : '... 阅读全文
posted @ 2014-04-23 08:57 安心种田 阅读(248) 评论(0) 推荐(0)
摘要:1: sprintf(), 字符串拼接, 返回值 spritnf 返回了本次函数调用最终打印到字符缓冲区中的字符数目。也就是说每当一次sprinf 调用结束以后,你无须再调用一次strlen 便已经知道了结果字符串的长度。2: long int strtol(const char *nptr, char **endptr, int base)The strtol() function converts the initial part of the string in nptr to a long integer value according to the given base, whic. 阅读全文
posted @ 2014-03-27 16:22 安心种田 阅读(119) 评论(0) 推荐(0)