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

Re:我觉得这个有两个地方需要注意,一是test case有多个,而是输入的结束符是文件结束符,cin.eof()可以作为判断输入是否结束

Posted by kakassi at 2009-08-25 14:50:22 on Problem 2250
In Reply To:我觉得这个有两个地方需要注意,一是test case有多个,而是输入的结束符是文件结束符,cin.eof()可以作为判断输入是否结束 Posted by:wyylling at 2009-08-23 08:28:46
谢谢你的提示 以前只知道scanf()!=EOF
认为反正while(cin>>a) 遇到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