How do I prevent a runaway input loop when I request a number but the user enters a non-number?

前端 未结 6 812
名媛妹妹
名媛妹妹 2020-12-11 09:03

I need to know how to make my cin statement not appear to \'remove\' itself if you input the wrong type. The code is here:

int mathOperator()
{
  using names         


        
6条回答
提交回复
热议问题