it i want to see if for example A B and C are equale can i just type
Code:A==B==C
Printable View
it i want to see if for example A B and C are equale can i just type
Code:A==B==C
Code:if ( A==B && B==C )
Remember that B==C returns a boolean, like 1 or 0. So you're testing if A==1 or 0. That's how C++ works, deal with it.
What he means isQuote:
Originally Posted by jafet
would check A==B and give a '1' for true or a '0' for false andQuote:
Originally Posted by Squeaker
then test if '1'==C