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:how to judge the input is over?

Posted by 00448242 at 2005-03-10 17:24:30 on Problem 1001
In Reply To:how to judge the input is over? Posted by:buffonzeng at 2005-03-10 16:20:49
int a;
if(scanf("%d",&a)==EOF)
{
    return 0;
}
cin >> a;
if(cin.eof())
{
    return 0;
}

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