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:gets()前面加getchar();读掉换行

Posted by hhhcccbbb at 2007-08-01 20:54:49 on Problem 2328
In Reply To:gets()前面加getchar();读掉换行 Posted by:yiyiyi4321 at 2006-07-29 17:53:35
谢谢yiyiyi4321。。我也犯了同样的错误,我也是用fflush(stdin)。。同样wa了N次。。。换成getchar()果然见效,一次通过了。。。要没兄台的提醒,真是想破脑袋也不知道是咋回事。。。

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