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:我觉得这个有两个地方需要注意,一是test case有多个,而是输入的结束符是文件结束符,cin.eof()可以作为判断输入是否结束In Reply To:我觉得这个有两个地方需要注意,一是test case有多个,而是输入的结束符是文件结束符,cin.eof()可以作为判断输入是否结束 Posted by:wyylling at 2009-08-23 08:28:46 谢谢你的提示 以前只知道scanf()!=EOF 认为反正while(cin>>a) 遇到EOF会自动结束 但是这次不行了 好在有这个提示 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator