📜  在 int c++ 中输入 char 避免循环 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:52.338000             🧑  作者: Mango

代码示例1
cin.clear();
cin.ignore(100, '\n'); //100 --> asks cin to discard 100 characters from the input stream.