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:囧。。。最后一个case不是'\n‘结尾

Posted by mark1989 at 2011-07-10 15:22:39 on Problem 2106
In Reply To:囧。。。最后一个case不是'\n‘结尾 Posted by:zhaozhouyang at 2011-07-09 19:27:42
选用 while(gets(s) != null) 不会有这个问题

> 以为遇到EOF程序直接结束,遇到'\n'再输出答案。。
> 原来最后一个case是遇到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