RE: [Dev-C++] Differences in compilers
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-04-14 13:46:52
|
-----Original Message----- From: Ioannis Vranos [mailto:no...@ho...] Sent: Sunday, April 14, 2002 4:42 PM To: Dev-C++ Subject: RE: [Dev-C++] Differences in compilers -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Jason Hardman Sent: Sunday, April 14, 2002 4:36 PM To: Dev-C++; Danny Austin Subject: Re: [Dev-C++] Differences in compilers Try writing NULL in all caps. AFAIK most definitions of NULL are done all in upper case letters. If I remember correctly NULL is normally defined thus: NULL definition is always in capital letters. #define NULL (void*) 0; It depends on the language. For C it is usually the above (without the ';'). For C++ the best definition of NULL is #define NULL 0 Or better: const int NULL=0; But the best in C++ is to use 0 directly. Reference: Paragraph 5.1.1 on page 88 of "The C++ Prrogramming Language" 3rd Edition or Special Edition. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |