經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供