tags: number

Action executed in 0.000

Each Tag

number

Common tags - number of posts

exception handler (1), database (1), user input (1), software (1), C++ (1), infinite loop (1),

Too short

Agree, but I would like to see ar real life positive example.
What's wrong is that this example is too short. I have yet to see a nice user input exception handling for a real life database entry screen. Ok, I can throw new Exception( "User is dumb.", NFE ) or maybe better, UserIgnorantlyTriesToEnterNotNumberException but I myself have to handle this puppy too or else it will go screaming up. And the dumb user will not pay me for such software!
parent post: Exceptions
notify me: yes

code snippet

I'm having trouble seeing why that'd be an infinite loop. Would the cin >> Command; not re-prompt the user after some non-number is entered the same as it would after some non-6 number is entered?
parent post: Extended Kilmer Day
notify me: yes