cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
string elements, how to know if its a nu
string elements, how to know if its a number...
Mar 11, 2008 at 5:36pm UTC
jdstufu
(43)
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 :)
Mar 11, 2008 at 5:51pm UTC
ropez
(310)
This is a function that checks if a single character is a digit:
http://cplusplus.com/reference/clibrary/cctype/isdigit.html
Mar 12, 2008 at 6:24am UTC
jdstufu
(43)
Thank you sir :) Indeed it helped :)
Topic archived. No new replies allowed.