Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:为什么c++ 中用&&和||就不对呢?非要用&和|呢?

Posted by vilic at 2011-03-30 20:39:19 on Problem 3295 and last updated at 2011-03-30 20:39:39
In Reply To:为什么c++ 中用&&和||就不对呢?非要用&和|呢? Posted by:sword_snow at 2010-07-10 20:31:56
因为如果 && 前面是 false, 就不会再判断(和执行)后面的语句. 同样, 如果 || 前是 true, 也不会再继续了.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator