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 谢谢yiyiyi4321。。我也犯了同样的错误,我也是用fflush(stdin)。。同样wa了N次。。。换成getchar()果然见效,一次通过了。。。要没兄台的提醒,真是想破脑袋也不知道是咋回事。。。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator