摘要: 程序运行时输入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(" 阅读全文
posted @ 2011-12-18 23:06 wust.zjf 阅读(1300) 评论(9) 推荐(0) 编辑