View Single Post
Old 07-09-2002, 11:46 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
If I remember correct, the cin class will set a given int type to 0 if the input isn't recognised as the same type.

Naturaly inputting to a string, will just convert the input of 123 to the string "123"
But this will be done for int and float/double inputs.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote