-
cant find the errors.
Hi
I am studying c++ in collage. I have this program due on Thursday and it is kicking my but trying to find the last 2 errors. any and all help would be appreciated. I know the whole thing might be messed up, and if it is please help me fix it, or tell me where to find the necessary info to fix it.
thanks
Steve
-
Here are some clues:
The logical AND operator is '&&', not '&' (which is the bitwise AND operator).
When you write 'if' statements, all conditions must be within the parentheses. For example: 'if((cond1) && (cond2))' not 'if(cond1)&&(cond2)'.
Also, when you declare a variable, the syntax is: 'type_name variable_name', not 'type_name = variable_name'.
I hope this helps you out.
-
can't find the errors
Thanks for the help. It was a big help. Thanks again. That was the biggest problem I had.