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:为什么c++ 中用&&和||就不对呢?非要用&和|呢?In Reply To:为什么c++ 中用&&和||就不对呢?非要用&和|呢? Posted by:sword_snow at 2010-07-10 20:31:56 因为如果 && 前面是 false, 就不会再判断(和执行)后面的语句. 同样, 如果 || 前是 true, 也不会再继续了. Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator