What is the proper way of using cin.fail() in a while loop?

后端 未结 0 501
旧巷少年郎
旧巷少年郎 2021-01-16 07:40

There\'s a program where we are supposed to enter numbers via a while loop, and I want to quit the program by entering a "non-numerical" character. Could

相关标签:
回答
  • 消灭零回复
提交回复
热议问题