Thread: Question About Boolean

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    5

    Question About Boolean

    Can anyone please tell me which library should i include to use

    the key work "bool"


    Thank You

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    That would be <stdbool.h> if you use C99. If you don't, either use C++ which defines bool as a built in keyword, or define it yourself something like this:
    Code:
    typedef enum { BFALSE, BTRUE } bool_t;
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Novice needs help
    By ghaasemi in forum C++ Programming
    Replies: 9
    Last Post: 05-30-2009, 08:20 AM
  2. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Use struct to create a boolean type
    By skyglin in forum C Programming
    Replies: 6
    Last Post: 06-18-2003, 08:21 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM