while ((c = getchar()) != EOF) Not terminating

前端 未结 8 1065
一个人的身影
一个人的身影 2020-12-02 01:54

I\'ve been reading \"The C Programming Language\" and I got to this part of inputs and outputs.

I\'ve read other threads saying that the console doesn\'t recognize e

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 02:25

    First of all press Ctrl + Z which will print ^Z then press Enter to go to EOF..

提交回复
热议问题