The semicolon tells the 'if statement' to do nothing when it is placed directly after it. In other words: if the statement is true do: ';' (nothing)
When the program passes that point it comes to:
{
std::cout << number_1 << " == " << number_2 << std::endl;
}
This part will now always be executed, because there is no longer a condition attached to it :)
So just remove the semicolon and you're back in business
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403