cin.ignore(numeric_limits<streamsize>::max(), '\n');
What does this line actually do?
cin.ignore(numeric_limits<streamsize>::max(), '\n');
Thanks
It discards all input in the standard input stream up to and including the first newline it encounters.
Forgot to reply. Thank you!
Topic archived. No new replies allowed.