Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boolean Operator Statements Help
#1
Hi,

So I've been trying to learn C++ and I've downloaded a free book on my phone that explains the basics but I am confused by Boolean Operator Statements (i.e. NOT, OR, AND.) I don't understand what their purpose really is? I can use if and else statements fine but these other ones I can't. Would somebody mind explaining what their purpose is?

All help is appreciated,
Dan.
Reply

#2
This should should make it more clear to you.
Code:
x AND y - returns True if both x and y are true; returns False if either x or y are false.

x OR y - returns True if either x or y, or both x and y are true; returns False only if x and y are both false.

x XOR y - returns True if only x or y is true; returns False if x and y are both true or both false.

NOT x - returns True if x is false (or null); returns False if x is true.

Here is a more sites that may help you.

Boolean Terms

Boolearns
<left><form action="https://www.paypal.com/cgi-bin/webscr" method="post">If you are satisfied with my help, consider a donation. Thank you so much for your continued support! 
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="Y4ZDLXGFS4F8Q">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
</form>

   </div></left> 
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.