摘要:
程序运行时输入abc(之后几个空格),输出结果光标不是停在abc+一个空格之后呢?#include<stdio.h>#define NONBLANK 'a'void main(){int c;for(;(c = getchar()) != EOF;){if(c != ' ')putchar(c);else{for(;(c = getchar()) == ' ' && c != EOF;); if(c != EOF){printf(" "); putchar(c);}else printf(" 阅读全文