|
From: Ioannis V. <no...@ya...> - 2001-09-29 17:31:55
|
Turbo C++ is old. ANSI C++ 1998 includes built in bool type with possible values true and false so redefining it is of course an error (like redefining 1,2). Example: =20 bool x=3Dtrue; x=3Dfalse; =20 =20 Ioannis =20 * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/>=20 * Alternative URL: http://run.to/noicys =20 -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Joani Dittrich Sent: Saturday, September 29, 2001 7:00 PM To: dev...@li... Subject: [Dev-C++] enum Boolean when i globally declare: =20 enum Boolean {false, true}; =20 and compile, an error says that there is a parse error before 'false'. however, at school, this does not come up when i compile on their turbo c++ compiler. |