Buffer!

Hi,

What would be or is the best way to clear buffer for data entry?

Thanks
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

Thank you very much Intrexa!
Topic archived. No new replies allowed.