|
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.
|