Hi everyone,
I'm experiencing a problem with a multiple if statement. I have tried
to use braces, but I must be doing something wrong. So, I have
removed all braces in the pseudo-code below, in the hope that someone
can help point out where I am going wrong:
if (condition 1)
calc1
else if (condition 2)
calc2
else if (condition 3)
calc3
else if (condition 4)
calc4
else
calc5
I get 2 error messages stating that I have misplaces else statements
after calc3 and calc4.
If any one of the conditions are met, I also want to exit the
program - would "break" be suitable for this?
rcoder