Quote:
cin.get() just to keep it open to see the result
had nothing to do with the code i posted.
anyways the ignore let you handle
say if you have char, and the user types
abcde but char only holds one, all the character left on the
buffer will go into the next statements,
so use something like cin.ignore(80, '\n');
to get rid of everything left on the buffer before the next cin >>
statment as nto to mess it up.
sorry if i was unclear by just saying newline, i ment up to the
newline
The posted code is not reading in chars using cin>>, and the cin.ignore() that you recommended the poster add to his/her code is superfluous.