i use an older compiler, borland c++ 3.1 and it doesn't have the bool variable type so i made my own bool type
enum bool
{
false = 0, true
};
but always when i try to make comparisons or other thing i get the warning ASSIGNING INT TO BOOL
eg.
int main()
{
bool x, y = true;
x = false;
if( x == false )
x = true;
if( x == true )
x = false;
x = x || y;
if( ( x || y ) == true ) // here i get ASSIGNING INT TO BOOL
x = false;
return 0;
}
how could i get rid of this warning ? they don't affect the program , but they are annoying