 |
c++ - How do I flush the cin buffer? - Stack Overflow
could you please cite an example where we need to ignore to the end of file because if I use cin and use the first statement above to flush the cin buffer, then it keeps prompting for input till I enter EOF by pressing ctrl+d? – ajay Oct 19 '13 at 19:39
stackoverflow.com |
 |