摘要: #include <stdio.h>main(){int c, i, nwhite, nother;int ndigit[10];nwhite = nother = 0;for (i = 0; i < 10; ++i)ndigit[i] = 0;while ((c = getchar()) != E 阅读全文
posted @ 2016-12-20 20:45 暮雪超霸 阅读(130) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int c,lastc; while((c = getchar()) != EOF){ if (c != ' ') putchar(c); if (c == ' ') if (lastc != ' ') putchar(c); lastc = 阅读全文
posted @ 2016-12-20 20:23 暮雪超霸 阅读(199) 评论(0) 推荐(0)
摘要: /*以每行一个单词的形式打印其输入 */ getchar putchar函数,是逐个打印和输入(逐个循环打印) #include <stdio.h> int main() { int c; while( (c = getchar()) != EOF) if(c == ' ' || c == '\n' 阅读全文
posted @ 2016-12-20 20:03 暮雪超霸 阅读(157) 评论(0) 推荐(0)