当前位置: 代码迷 >> 综合 >> 练习 1-9
  详细解决方案

练习 1-9

热度:76   发布时间:2024-02-05 07:51:13.0
#include <stdio.h>#define NONBLANK 'a'int main() {int c, lastc;lastc = NONBLANK;while((c = getchar()) != -1) {if(c != ' ' || lastc != ' ') {putchar(c);}lastc = c;}
}

 

  相关解决方案