/*多个空格只输出一个*/ #include<stdio.h> int main(void) { char sucker, spoon, chopstick; sucker = spoon = chopstick = '\0'; while((sucker=getchar())!=EOF){ if(chopstick!=sucker) putchar(sucker); if(sucker==' ') chopstick = sucker; else chopstick = '\0'; } return 0; } //e:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.8.1\..\..\..\libmingw32.a(main.o):main.c:(.text.startup+0xa7)||undefined reference to `WinMain@16'|