摘要:
1 #include <stdio.h> 2 3 #define IN 1 4 #define OUT 0 5 6 /*统计各个数字、空白符及其他字符出现的次数*/ 7 8 int main() 9 { 10 int c, n1, nw, nc, state; 11 12 state = OUT; 阅读全文
posted @ 2020-04-23 22:31
杪杪
阅读(398)
评论(0)
推荐(0)
摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 int c; 6 while ((c=getchar())!=EOF){ /*判断输入字符是否为文件结束符*/ 7 if (c=='\t') /*如果输入字符为制表符*/ 8 阅读全文
posted @ 2020-04-23 21:54
杪杪
阅读(663)
评论(0)
推荐(0)
摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 int space=0, tab=0, line=0, c; 6 while ((c=getchar())!=EOF){ 7 if (c==' ') 8 ++space; 9 阅读全文
posted @ 2020-04-23 21:49
杪杪
阅读(453)
评论(0)
推荐(0)
摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 printf("%d\n", EOF); 6 system("pause"); 7 return 0; 8 } 阅读全文
posted @ 2020-04-23 21:46
杪杪
阅读(836)
评论(0)
推荐(0)
摘要:
1 #include <stdio.h> 2 #include <stdlib.h> 3 int main() 4 { 5 int c, space=0; 6 while ((c=getchar())!=EOF){ 7 if (c==' ') 8 ++space; 9 else 10 space=0 阅读全文
posted @ 2020-04-23 21:39
杪杪
阅读(337)
评论(0)
推荐(0)
浙公网安备 33010602011771号