Answers for "flush buffer c++"

C++
3

clear buffer memory in c / c++

fflush(stdin);
Posted by: Guest on October-04-2020
0

clear the input buffer in cpp

cin.clear();
cin.ignore(numeric_limits<streamsize>::max(), '\n');
Posted by: Guest on March-24-2022

Browse Popular Code Answers by Language