Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

cin就if(!cin)成真的时候表示结束了,scanf就判断返回值

Posted by hawk at 2005-02-03 16:20:50 on Problem 2111
In Reply To:再问一个问题,C++怎么判断输入文件结束?(+) Posted by:ZhangQi at 2005-02-03 15:47:59
前者只是表示输入流进入失败状态了
读完了就是失败状态的一种
> 我只知道用EOF,具体语句不会!

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator