[Dev-C++] what's the (practical) diff?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: P.T. W. M. <pt...@ea...> - 2004-01-05 17:48:30
|
What are the practical reasons for choosing one over the other?
This:
// Using enum
//
enum Boolean {false, true};
vs.:
// Using cpp object macros
//
#ifndef FALSE
#define FALSE
#endif
#ifndef TRUE
#def TRUE 1
#endif
Not sure I understand why one would choose one over the other.
Patrick
|