|
|
1
2
你忘了
没有它,您检查的是指针的值,而不是刚刚读取的数字。
你还需要打电话
看见 Why would we call cin.clear() and cin.ignore() after reading input? |
|
|
Nifas · Python:将用户输入用作dict键时出现键错误 8 年前 |
|
|
LalaJava · Java方法字符模式-初学者 8 年前 |
|
|
Richard Yudkiss · 重置之前,基本计算器需要多个输入 8 年前 |
|
|
f.lechleitner · R-多行上的readline提示 8 年前 |
|
|
JoshingYou · 我无法运行此程序[已关闭] 8 年前 |
|
|
Nic · 用于记录用户选择的响应图像 8 年前 |