Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,999 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,347 people online right now. Registration is fast and FREE... Join Now!




non-integer values

 
Reply to this topicStart new topic

non-integer values

alligarbage
4 Dec, 2006 - 12:33 AM
Post #1

New D.I.C Head
*

Joined: 3 Dec, 2006
Posts: 6


My Contributions
I have four values (a, b, c, d) that are of int data type.
In my code I need to make sure the data entered by the user are actual integers and not letters or numbers that contain decimals.

How do I do this the easiest way possible?
User is offlineProfile CardPM
+Quote Post

Xing
RE: Non-integer Values
4 Dec, 2006 - 12:44 AM
Post #2

D.I.C Addict
Group Icon

Joined: 22 Jul, 2006
Posts: 723



Thanked: 4 times
Dream Kudos: 1575
My Contributions
Input Validation In C++
User is offlineProfile CardPM
+Quote Post

alligarbage
RE: Non-integer Values
4 Dec, 2006 - 12:50 AM
Post #3

New D.I.C Head
*

Joined: 3 Dec, 2006
Posts: 6


My Contributions
Thank you. smile.gif
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 08:22PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month