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 Huacm42 at 2006-07-29 19:29:43 on Problem 2328
In Reply To:gets()前面加getchar();读掉换行 Posted by:yiyiyi4321 at 2006-07-29 17:53:35
谢谢yiyi啊:)9仰了,可惜暑假有事先回去了没能和你们一起呆太久
原来用fflush(stdin)在自己编译器上没问题,是把它删掉加'\n'就可以了。校赛原来一道处理中文逆序的题目也是因为少了‘\n'WA了多次,竟然又犯了类似的错误。。。

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