读书人

linux上的scanf是不是遇到EOF也终止运

发布时间: 2012-07-28 12:25:13 作者: rapoo

linux下的scanf是不是遇到EOF也终止运行?
发现个问题,在linux下输入EOF,scanf也会终止运行,而在Windows下则不会,是不是在linux下scanf遇到EOF也终止运行?

[解决办法]
scanf stops when it exhausts its format string, or when some input fails to match the control specification.

读书人网 >C语言

热点推荐