Why does the input both, produce erroneous values and fail() unless I have the " " when dealing with integers?
I am using files. Is there a trick I'm not aware of? ;)
(btw, this is a dummy class)
The value of nothing.med and nothing.one being printed is the value you initialized them with
on lines 3-4 (since valid data was not read, their values were left unmodified).
You can put whichever character you like but you'll need to use getline instead of >> then.
>> stops reading when a whitespace is found ( ' ', '\t', '\n', '\r', '\v' )