Advertisement

keywords in c/c++

Started by June 09, 2003 08:01 PM
2 comments, last by dynamo_wku 21 years, 8 months ago
This is probably a stupid question but I''m just curious. In the tutorials and some books I have I see things like: BOOL fullScreen; foo = TRUE; My question is why the capitalization? I mean it still compiles fine and runs just great but is it different than just saying bool or true/false? Thanks!
The capitalized versions of BOOL/TRUE/FALSE are just defines within the window''s header.
"...."
Advertisement
quote:
Original post by Lunatic Raven
The capitalized versions of BOOL/TRUE/FALSE are just defines within the window''s header.


If they are defined in the winows.h then should I use them if I plan on porting to another system like linux?
No. Use bool / true / false. Not BOOL / TRUE / FALSE.

The windows BOOL (correct me if im wrong) is actually an int not a true boolean value.

This topic is closed to new replies.

Advertisement