realchick
asked on
Single Most Efficient Way to Clear Keyboard Buffer C++
Hi All,
Can someone please tell me the single most efficient way to clear the keyboard buffer in C++? I found the following but don't know if it's efficient:
cin.ignore(numeric_limits< streamsize >::max(), '\n');
Some background: I'm a college student in 1st Semester OOP.
- Thanks
Can someone please tell me the single most efficient way to clear the keyboard buffer in C++? I found the following but don't know if it's efficient:
cin.ignore(numeric_limits<
Some background: I'm a college student in 1st Semester OOP.
- Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER