cin.clear () function in C++ - GeeksforGeeks
Aug 22, 2024 · The cin.clear () function in C++ is a member function of the std::istream class, which is used to clear the error flags on the cin stream. When an input operation fails (for example, due to incorrect da...