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 |
Re:gets()前面加getchar();读掉换行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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator