Lines 35-43: Your case branches do not have
break
statements. This will cause the code to flow through to the next branch.
Line 48:
--attempts
will never be executed because of the preceding
return
statement.
Line 55:
This is a function declaration, not a function call. Remove the
void
Line 57: What value is returned if you fall through to the end of the function? Better question, why is this an int function since you don't use the return value.
Line 111:
|
int reviewGuess(int randomNumber,int guess);
|
Again a function declaration, not a function call.
My line numbers are approximate since you did not use code tags.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.