C语言进阶-字符 #include <stdio.h> int main(int argc, char const *argv[]) { int ch; while ( (ch = getchar()) != EOF ) [putchar(ch);{ printf("EOF\n"); } return 0; } 强制程序结束 window 字符串数组