04.10.2012, 08:57
The problem is that your checks are always true if the compiler is able to assign the value to the variable. If you change those assignment operators to the double assignment (as ikey07 said above me, but I'd like to explain WHY this is) then your code should not have an assignment (possibly unintended assignment). The rest of your errors come from this little assignment.