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

另外,我还有一个关于eof的问题。

Posted by plumage at 2005-05-20 13:48:02 on Problem 1047
In Reply To:简单来说就是输入是从文件通过管道重定向转过来到stdin的,实际上就是文件输入,后面当然会有eof Posted by:frkstyc at 2005-05-20 13:18:35
如你程序:
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