string elements, how to know if its a number...

I wanted to know if there is a C++ function that will determine if a string element is a number or an letter? I wanted to check each elements of the string inputted in my program if its a number or not :)


thank you :)
This is a function that checks if a single character is a digit:

http://cplusplus.com/reference/clibrary/cctype/isdigit.html
Thank you sir :) Indeed it helped :)
Topic archived. No new replies allowed.