cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Trying to check for integer
Trying to check for integer
Sep 20, 2011 at 4:37pm UTC
Craig9008
(2)
I'm writing a program in C++ that's supposed to test two different whole numbers, so I've assigned the numbers to int, the problem is I can't figure out how to test if the user enters a whole number or not. Help me out please?
Sep 20, 2011 at 4:49pm UTC
Ben Duncan
(163)
This could probably help you a lot:
http://www.cplusplus.com/reference/clibrary/cctype/isdigit/
Sep 20, 2011 at 4:52pm UTC
Craig9008
(2)
Yes that is what I have been looking for, thank you Ben.
Topic archived. No new replies allowed.