| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 440 人关注过本帖
标题:scanf("%d%d",&a,&b)!=EOF 不懂,能解释给我听吗,谢谢
收藏  订阅  推荐  打印
casual0402
Rank: 1
等级:新手上路
帖子:23
积分:344
注册:2008-5-11
scanf("%d%d",&a,&b)!=EOF 不懂,能解释给我听吗,谢谢

呵呵 如题啊
搜索更多相关主题的帖子: EOF  scanf  解释  
2008-5-11 19:37
zhaoyg
Rank: 3Rank: 3
等级:中级会员
帖子:326
积分:3522
注册:2006-8-28

Returns the number of fields successfully converted and assigned; the return value does not include fields that were read but not assigned. A return value of 0 indicates that no fields were assigned. The return value is EOF for an error or if the end-of-file character or the end-of-string character is encountered in the first attempt to read a character.

from MSDN

麻雀飞上枝头变凤凰,而菜鸟的我飞上枝头却感冒了,为什么我的脑袋如此的不管用呢。
2008-5-11 19:51
kang216
Rank: 1
等级:新手上路
帖子:3
积分:132
注册:2008-4-29

以下是引用 zhaoyg 在 2008-5-11 19:51 的发言:

Returns the number of fields successfully converted and assigned; the return value does not include fields that were read but not assigned. A return value of 0 indicates that no fields were assigned.  ...
太专业了,看不懂
2008-5-11 21:06
meayer
Rank: 1
等级:新手上路
帖子:6
积分:160
注册:2008-9-13

LS是说scanf返回正确输入数据的个数,返回的值不包括读下来,但没分配给指定地址的数据.返回值为0表示没有任何一个数据被输入.如果出错,或在第一个字符被读入之前就遇到了输入缓冲的结尾或字符串的结尾,则返回EOF.
2008-9-13 02:11
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.045896 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved