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

C语言这么结束

Posted by hanlonglonglong at 2014-01-07 13:25:07 on Problem 1207
In Reply To:Re:输入以什么结束啊 Posted by:200930740305 at 2011-04-30 13:32:36
if(EOF == scanf("%d %d", &beginnum, &endnum))
{
	break;//这里是用来结束的,不要照抄我的。。
}

总之就是用EOF,不能用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