How to validate numeric input C++

后端 未结 7 1992
忘了有多久
忘了有多久 2020-11-29 11:26

I\'d like to know how to limit an input value to signed decimals using std::cin.

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 12:06

    I'm not trying to be rude. I just wanted to share a solution I provided which I believe is more robust and allows for better input validation.

    Please refer to: My Solution to Input Validation

提交回复
热议问题