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

while(cin)

Posted by frkstyc at 2005-05-20 13:48:47 on Problem 1047
In Reply To:另外,我还有一个关于eof的问题。 Posted by:plumage at 2005-05-20 13:48:02
> 如你程序:
> while(scanf("%s",str) != EOF)
> 我这样改为:
> 	cin>>In;
> 	while(In[0]!= 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