Buffer!
Jun 8, 2011 at 5:01pm
Hi,
What would be or is the best way to clear buffer for data entry?
Thanks
Jun 8, 2011 at 5:38pm
If you mean only using cin,
1 2 3
|
#include <limits>
cin.ignore(numeric_limits<streamsize>::max(), '\n');
|
Otherwise you need to be more specific
Jun 8, 2011 at 6:18pm
Thank you very much Intrexa!
Topic archived. No new replies allowed.