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 |
C语言这么结束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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator