QQ群:703568346
扫码预约课程
981013 发表于 2014-3-23 15:20 是bash 不过一般用的是xCode的虚拟终端
举报
The end-of-file condition is remembered, even on a terminal, and all subsequent attempts to read will return EOF until the condition is cleared with clearerr(3).
rosynirvana 发表于 2014-9-7 21:58 当时的回复有个地方不怎么确定,这个问题其实可以比照一下OSX和Linux的man page OSX getchar (3)
981013 发表于 2014-9-8 11:30 也就是说在Mac OS上终端记住了EOF,然后在clearerr之前都不能正常读取?
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页