C语言的文件作用域?

C语言的文件作用域是作用于一个文件还是多个文件?
C | 2020-12-31 22:11 | 阅读 1451 次 | 评论 2 条

C PRIMER PLUS 第六版 P372 第15题

15.使用字符分类函数实现atoi()函数。 如果输入的字符串不是纯数字,该函数返回0。 #include<stdio.h> int catoi(char*); int main(void) { char ch[100]; int tot; printf("please input:"); gets(ch); tot=catoi(ch); printf("the number:%d",tot); return 0; } int catoi(char*s) { int i=0; int sum=0; ...
默认分类 | 2020-12-14 21:27 | 阅读 1220 次 | 评论 0 条

CPRIMERPLUS 6 P372 第十三题

13.编写一个程序, 反序显示命令行参数的单词。 例如, 命令行参数是see you later, 该程序应打印later you see #include<stdio.h> #include<string.h> #include<ctype.h> void st(char**,int); int main(int argc,char *argv[]) { //printf("%d\n",argc); for(int i=1;i<argc;i++) { puts(argv[i]); } st(argv,argc); ret...
练习题 | 2020-12-13 21:51 | 阅读 1208 次 | 评论 0 条
浏览34521次