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:这个程序怎么结束啊

Posted by bkSwift at 2008-09-30 11:58:39 on Problem 1001
In Reply To:这个程序怎么结束啊 Posted by:ZHS_999 at 2008-09-30 11:55:27
> 如果照他说的
> while(scanf("%s%d",s,&n)==2)
> 程序就会一直读取数据,结束不了啊。最后只能按Ctrl+Break
> 谁能帮忙啊
> 谢谢!

/*while(scanf(%s%d",s,&n)!=EOF) //this also work    */

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