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:为什么while(cin>>s>>t)能过而把cin写在while(1)里面就OLE?In Reply To:Re:为什么while(cin>>s>>t)能过而把cin写在while(1)里面就OLE? Posted by:Desertangle at 2010-05-04 10:33:29 > while(1)是死循环,永远跳不出来... > 而while(cin>>s>>t)是根据cin是否有效判断,cin无效,代表输入结束,一般是文件结束符好像,不太记得了.呵呵..我也就知道这些了... P.S Windows下结束while(cin>>s>>t)是Ctrl+Z Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator