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 |
对,不是这样的In Reply To:Re:需要自己判结束 Posted by:glaver at 2004-03-01 12:28:49 这个就看你语言基础了。 如果是scanf,因为scanf返回值是成功读入的个数 而文件结束的时候就返回-1,所以只要判断返回值 而用cin的话,只要判断cin是否有效就可以了 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator