Thread: Bool?

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Question Bool?

    I'm using Borland version 4.52 and it doesn't recognize bool... is there an equivelant i can use? or is their a special library for bool that I haven't been including?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Re: Bool?

    Originally posted by drdroid
    I'm using Borland version 4.52 and it doesn't recognize bool... is there an equivelant i can use? or is their a special library for bool that I haven't been including?
    Your compiler is too old......

    With all the free compilers on the net, you should simply get a newer version (borland offer a newer one for free)

    Alternatively


    typedef int bool;
    #define true 1
    #define false 0

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. passing params between managed c++ and unmanaged c++
    By cechen in forum C++ Programming
    Replies: 11
    Last Post: 02-03-2009, 08:46 AM
  2. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  3. Smart pointer class
    By Elysia in forum C++ Programming
    Replies: 63
    Last Post: 11-03-2007, 07:05 AM
  4. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  5. Need Help With an RPG Style Game
    By JayDog in forum Game Programming
    Replies: 6
    Last Post: 03-30-2003, 08:43 PM