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:我无语了!WA了无数次就因为我用的gets(),没有用scanf(),还以为是我的程序错了呢,拼命的找错误,没有结果!突然看见一个space,改过来一试,就AC了.郁闷~~~~~~~~~~~~~~In Reply To:我无语了!WA了无数次就因为我用的gets(),没有用scanf(),还以为是我的程序错了呢,拼命的找错误,没有结果!突然看见一个space,改过来一试,就AC了.郁闷~~~~~~~~~~~~~~ Posted by:fgjlwj at 2006-03-07 15:20:31 输入某行的末尾有多余的空格 scanf %s和cin>>string是不吃空格的 gets要吃 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator