Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I need help huys.
I want C++ to accept only numerical values from the user as input.
Other than that I want it to reject.
Example of how I would like it to work.
>Enter number: //User would enter number,anything else reject.
And another thing, I would love to know how to get C++
to accept oly charactors and reject numerical values too.
thanks in advance...
I want C++ to accept only numerical values from the user as input.
Other than that I want it to reject.
Example of how I would like it to work.
>Enter number: //User would enter number,anything else reject.
And another thing, I would love to know how to get C++
to accept oly charactors and reject numerical values too.
thanks in advance...