Does anyone know how to flush the input buffer in C++? I was able to do it in C by fflush(stdin) in C I/O, but I could not find its counterpart in C++. I am using a lot of input operations in my file structures project and sometimes values which were previously inputted are inputted again due to this problem.
Thanks for any help.