清空输入缓冲区: fflush(stdin);cin.sync();cin.ignore(n, delim) //Extracts characters from the input sequence and discards them, until either n characters have been extracted, or one compares equal to delim 清空输出缓冲区: fflush(stdout);cout.flush();endl;