# C++

**URL:** <https://forum.kirupa.com/t/c/35988>\
**Category:** Uncategorized\
**Created:** [November 20, 2003, 2:01pm UTC](https://forum.kirupa.com/t/c/35988 "2003-11-20T14:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashleek007](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Ashleek007](https://forum.kirupa.com/u/Ashleek007)\
**Post date:** [November 20, 2003, 2:01pm UTC](https://forum.kirupa.com/t/c/35988/1 "2003-11-20T14:01:17Z")

</div>

hey everyone,

I know this isnt anything to do with falsh or actionscript but I know u guys are great at everything!!!🙂

neways ive got a c++ program that im writing, its a simple calculator, the way it runs is by the user entering a number then another number, then the operand…  
what i need to know is how to carry out a check on the two integers so that only a number can be input, if anything else is then the program returns to the “insert first integer” code

ive declared the two values as FLOATS

any ideas?  
cheers
