I've got a boolean value being returned from a class, and I'm trying to create an if statement, something like:
if (boolean == true)
cout << "True!";
else
cout << "False!";
Well its not working as it always finds it true.
This is because the boolean == true is an int comparison, right?
So can someone help me out? All the text's I see only mention booleans in passing...
Thanks in advance.
if (boolean == true)
cout << "True!";
else
cout << "False!";
Well its not working as it always finds it true.
This is because the boolean == true is an int comparison, right?
So can someone help me out? All the text's I see only mention booleans in passing...
Thanks in advance.