Also, I'd suggest putting braces around this cout statement (after the else) for consistency. Since you had braces around the first part of the if/else statement, I think it looks nicer to have them for the second part.