user error with if statements.

Can some one provide me details on how to check for user error input?
I have a function and I want it to give an error message using if statements if the input is a letter, not a real number, and not an integer. In matlab it was easy to do these, does c++ have an equivalent?

Last edited on
Last edited on
Topic archived. No new replies allowed.