Code: while (cin.rdbuf()->in_avail() > 0) cin.get();
while (cin.rdbuf()->in_avail() > 0) cin.get();
When all else fails, read the instructions. If you're posting code, use code tags: [code] /* insert code here */ [/code]