Mail Archives: djgpp/1997/01/21/06:40:04
#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 -