number validation

I am writing a small C++ cprogram, and need the user to enter numbers. How do I write the code that would prevent them from entering a letter?

thanks
This topic was already discussed, here you should find the answer:
http://www.cplusplus.com/forum/beginner/4566/#msg20182
Last edited on
Topic archived. No new replies allowed.