delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/06:40:04

Date: Wed, 22 Jan 1997 13:30:10 +0100 (MET)
From: Miguel Murillo <mmurillo AT ideafix DOT cps DOT unizar DOT es>
To: Alan Bostick <abostick AT netcom DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: New to djgpp -- curious compilation problem
In-Reply-To: <abostickE4BLn0.5EE@netcom.com>
Message-ID: <Pine.LNX.3.95.970122132001.32606A-100000@ideafix.cps.unizar.es>
MIME-Version: 1.0

#if 0
Hello Alan the problem is : 
	bool typedefined in C++ 
		false (1==0)
		true  (1==1)
you don't need defined enum Boolean { false =0, true };
or change name false for False ,Fal,...
	   and true  for True , truee, ...
////////////////////////////////////////////////////////         
#endif
  
#include <iostream.h>
int main()
  {
         enum Boolean { false = 0, true };
         if (false)
         {
                 cout << "Something is seriously wrong here!\n";
         }
         else // if !false
         {
                 cout << "This is what you ought to see.\n";
         }
 
         return 0;
 }

bye Alan ;-) 				MIGUEL MURILLO


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019