|
From: Per W. <pw...@ia...> - 2004-01-04 11:32:00
|
I hope you have never seen any code doing #define true 0 since the compiler treats any non-zero value as TRUE, i.e. the reverse condition. Also, in c++ true is reserved word, just like int or char, so in C++ you don't have to #define anything. A lot of C code are using #define FALSE 0 #define TRUE 1 or possibly #define FALSE 0 #define TRUE (!FALSE) /Per W On Sat, 3 Jan 2004, Noorez Kassam wrote: > There are somethings i don't understand. > > I thought that you needed the windows.h file to use the UINT for unsigned > int? When I was programing for MS-DOS i never saw the UINT for unsigned int. > > and what would this program line do > #define true 0 > > and what is an unsigned char? > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |