/*以每行一个单词的形式打印其输入 */
getchar putchar函数,是逐个打印和输入(逐个循环打印)
#include <stdio.h> int main() { int c; while( (c = getchar()) != EOF) if(c == ' ' || c == ' ' || c == ' ') printf(" "); else putchar(c); }