View Single Post
  #16 (permalink)  
Old November 10th, 2006, 07:55 AM
Geo121 Geo121 is offline
Friend of Wrox
 
Join Date: Jan 2006
Posts: 103
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Geo121
Default

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
Reply With Quote