NO.
Not exactly.
If you wanted you could declare a variable such as:
int myInteger;
than you could accept input from it such as:
cin >> myInteger;
then the user could enter an integer value
using characters is a poor yet somewhat successful practice
I created a function that accepts input as a character and then converts it to a specified value declared in the function
however this is only so that I can reduse the number of try catch exception handlers
if you are new to C++ I suggest following along with your book
before you try this function =P
don't want any confusion later on
but that was a good question
~ Geo
~ You are unique, just like everyone else
|