1.函数名:atoi 功能:是把字符串转换成整型数的一个函数,应用在计算机程序和办公软件中 名字来源:alphanumeric to integer 用法:int atoi(const char *nptr); 说明: 参数nptr字符串,如果第一个非空格字符存在,是数字或者正负号则开始做类型转换, Read More
posted @ 2015-11-26 17:03 天王星B Views(740) Comments(0) Diggs(0)
4.1 函数的基本知识#include #define MAXLINE 1000int add_getline(char line[], int max);int strindex(char source[], char searchfor[]);char pattern[] = "ray";int... Read More
posted @ 2015-11-26 16:42 天王星B Views(193) Comments(0) Diggs(0)
大师级经典的著作,要字斟句酌的去读,去理解。以前在看K&R的The C Programming Language(Second Edition)中第1.5节的字符输入/输出,很迷惑getchar()和EOF的行为。因此,感觉很有必要总结一下,不然,很多琐碎的知识点长时间过 后就会淡忘的,只有写下来才... Read More
posted @ 2015-11-26 12:07 天王星B Views(175) Comments(0) Diggs(0)