Hey I was wondering how would you get input from the user (for an int(using cin >>)) and if they type in a char then it will tell the user to reinput the number.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sounds like a simple do{...}while(); loop I would personally use a separte function for the job. Say Input(); or such, then you can send it the Max and Min for the number, and return the number entered when it fits the quota. I had such a function once, but since my main comp is down, I can't access it right now.
Curtis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey I was wondering how would you get input from the user (for an int(using cin >>)) and if they type in a char then it will tell the user to reinput the number.
sounds like a simple do{...}while(); loop I would personally use a separte function for the job. Say Input(); or such, then you can send it the Max and Min for the number, and return the number entered when it fits the quota. I had such a function once, but since my main comp is down, I can't access it right now.
Curtis
Please do not use refresh! It will lead to a dbl post.
Curtis