首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

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

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

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.

热点排行