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

对,不是这样的

Posted by hawk at 2004-03-01 14:03:11 on Problem 1555
In Reply To:Re:需要自己判结束 Posted by:glaver at 2004-03-01 12:28:49
这个就看你语言基础了。
如果是scanf,因为scanf返回值是成功读入的个数
而文件结束的时候就返回-1,所以只要判断返回值
而用cin的话,只要判断cin是否有效就可以了

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