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:为什么while(cin>>s>>t)能过而把cin写在while(1)里面就OLE? Posted by:o0Fancy0o at 2008-09-22 21:45:54 > 为什么while(cin>>s>>t)能过而把cin写在while(1)里面就OLE? while(1)是死循环,永远跳不出来... 而while(cin>>s>>t)是根据cin是否有效判断,cin无效,代表输入结束,一般是文件结束符好像,不太记得了.呵呵..我也就知道这些了... Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator