Write a Simple function that accepts a character and return true if it is a digit else return false:
bool isDigit(char ch) { return (ch >='0' && ch<='9'); }
The above function is self-explanatory.
No related posts found
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login