|
From: Ioannis V. <no...@ya...> - 2002-01-16 18:43:29
|
In C++ there is the built in type bool with possible values true and false. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of David Mcken > Sent: Saturday, February 16, 2002 7:52 PM > To: dev...@li... > Subject: [Dev-C++] Some help on BOOL > > > I have been told that boolean logic is represented > by using numbers yet when I type bool I see it bold. > Will some one please tell me if there is a type bool and > what states it uses (ex. true or false, or dose it still > accept numbers > > for now I have been putting this at the beginning of all my code > > //Define True and False > #define false 0 > #define true !false > > I am a newbie just out of high school in the Caribbean and I > am looking to advance my skills in C and C++ (for now all I > know is Turbo Pascal which has a boolean type) > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |