阅读背景:

如何在c ++中清除istringstream对象的缓冲区?

来源:互联网 

I am trying to validate the input in a way that the user always has to enter kg or lb, if it doesn't do it will ask the user to reenter. It works until that point but it doesn't read the new input. I know that I need to clear the buffer but iss.clear() is not working. I am trying to validate the input in a way that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: