Monday, August 15, 2011

What's wrong with this c++ code?

My first guess is that it's complaining about those semicolons following the conditionals of your if statements. That effectively has it do nothing if the condition evaluates to true. Then it will get totally confused when it encounters the 'else' as that semicolon up there ended the if statement.

No comments:

Post a Comment