SyntaxFix
Write A Post
Hire A Developer
Questions
The following should work:
cin.flush();
On some systems it's not available and then you can use:
cin.ignore(INT_MAX);