Having troubles with EOF on Windows 7

前端 未结 2 1136
不知归路
不知归路 2020-12-06 21:41

I\'m currently learning C with K&R and I\'m having a hard time sending EOF simulation through cmd. I was trying Ctrl + Z which did nothing.

2条回答
  •  青春惊慌失措
    2020-12-06 22:23

    In a Windows 7 console window, I had success pressing F6 followed by Enter. F6 produces the end-of-file ^Z symbol at the command prompt.

    Ctrl+Z causes the console window to quit execution, not only the user program.

提交回复
热议问题