How do I flush the cin buffer?

I would prefer the C++ size constraints over the C versions: // Ignore to the end of Stream std::cin.ignore(std::numeric_limits<std::streamsize>::max()) // Ignore to the end of line std::cin.ignore(std::numeric_limits<std::streamsize>::max(), ‘\n’)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)