Quote:
Originally Posted by apalrd
I disagree. == is not =.
= sets one variable to another. == checks for a comparison. so I am checking that team is equal to 33, if it is, then win. The order does not matter.
Actually, in C (or C++), it is better to put the constant before the variable, in case you forget the second =, so the compiler will give you an error for setting a constant instead of getting some crazy error at runtime.
EDIT: I see that BJC forgot the second =. The actual one says "if (33==team) win();"
|
JAVA developer here. That's actually the point I was trying to make, you need the == to compare. I've never played with C or C++, so I have no clue yet.