Thread: Need help specific on boolean operators

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    3

    Question Need help specific on boolean operators

    Anyone may explain to me about boolean operators, I am a newbie in C programing and I not understand what it says in the C programing tutorial on this site
    May anyone also give me a guide
    MSN = [email protected]
    facebook = [email protected]
    Skype = [email protected]
    Please.... I really wanna learn...

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    200
    Is there something specific you're having a problem with? Your question is very general, and could only really be answered by writing another tutorial on boolean operators, which might just lead you back to the same problem...

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    In a nutshell booleans are switches... they are either OFF (false, 0) or ON (true, non-0) ... no other state is valid.

    Code:
    BOOL a;
    
    if (a)   // if a != 0
     DoThis();
    else    // a must be 0
     DoThat();
    
    
    while (a)          // keep doing this until a is 0
      DoThisThing();
    Of all the crap in programming, this is just about the easiest!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boolean Operators...
    By Nean in forum C++ Programming
    Replies: 8
    Last Post: 10-06-2009, 02:31 AM
  2. C++ and Boolean Operators
    By Rockskin in forum C++ Programming
    Replies: 3
    Last Post: 03-13-2006, 03:45 PM
  3. Boolean operators
    By Trogdor27 in forum C++ Programming
    Replies: 10
    Last Post: 09-12-2005, 06:46 AM
  4. boolean operators
    By bj31t in forum C++ Programming
    Replies: 5
    Last Post: 03-30-2004, 08:34 PM
  5. Boolean Operators?
    By civilwarsearch in forum C++ Programming
    Replies: 11
    Last Post: 12-15-2003, 09:50 PM

Tags for this Thread