Cin in a while loop

后端 未结 5 920
南笙
南笙 2021-01-25 08:00

So, I\'ve looked around and haven\'t been able to figure out what\'s going on with cin during my While loop. I\'m working through the book C++ Primer (5th edition) and I noticed

5条回答
  •  野的像风
    2021-01-25 08:50

    @Protomega, You can use the same code, but press Ctrl+D to stop input stream.

提交回复
热议问题