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:请帮忙看看!没错,但提交时说是wrong answer!In Reply To:请帮忙看看!没错,但提交时说是wrong answer! Posted by:wqfcr at 2003-12-11 10:37:19 没有什么大的问题,你的输入控制不太符合要求,我给你改了一下: void main() { int m; char b[7]="0"; while(cin.get(b,7)) { if(cin.get() == '\n') return; cin>>m; deal(m,b); while(cin.get() != '\n'); } } 就OK了。。。你可以试一下 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator