A quick question on my code.

Thanks for the help everyone!
Last edited on
Input is int. Expected input is not int.

See table in section "Return Value" in: http://www.cplusplus.com/reference/istream/istream/operator%3E%3E/
Thanks dude! You are a life saver :D
.
Last edited on
Note: You have a recursive function. You could have a while loop instead of recursion. Iteration suits this task better.


Why does your while-loop call the play() twice? The second call does not even store the return value. That call seems utterly useless.
Topic archived. No new replies allowed.