Write a program to copy its input to its output, replacing each string of one or more blanks by a single blank. 编写这样一个程序,实现将输入流复制到输出流,但是要将输入流中多个空格过滤成一个空格. 1.旗帜变量方法 #include <stdio.h> int main(void) { int c; int inspace; //这里用了旗帜变量来过滤多余空格 inspace = ;…