Why doesn't the EOF character work if put at the end of a line?

前端 未结 0 1361
梦如初夏
梦如初夏 2021-02-19 18:23

I\'m learning C++ and trying to understand,
Why doesn\'t the EOF character (Ctrl + Z on Windows) break the while loop if put at the end of a line?

My code:



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