解决linux下fflush(stdin)无效 void clean_stdin(void) { int c; do { c = getchar(); } while (c != ' ' && c != EOF); }