| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
while(cin)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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator