![1.2.cpp - #include<iostream> /The cin.clear() clears the error flag on cin (so that future I/O operations will work correctly), /and then | Course Hero 1.2.cpp - #include<iostream> /The cin.clear() clears the error flag on cin (so that future I/O operations will work correctly), /and then | Course Hero](https://www.coursehero.com/thumb/18/e5/18e5e5521461ada4ee77800c67af2c11297474f4_180.jpg)
1.2.cpp - #include<iostream> /The cin.clear() clears the error flag on cin (so that future I/O operations will work correctly), /and then | Course Hero
![169. Ignore Function in C++ (Hindi) Video Lecture | Study Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming | Best Video for Back-End Programming 169. Ignore Function in C++ (Hindi) Video Lecture | Study Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming | Best Video for Back-End Programming](https://i.ytimg.com/vi/ff7h53svUg8/mqdefault.jpg)
169. Ignore Function in C++ (Hindi) Video Lecture | Study Learn to Program with C++: Beginner to Expert (in Hindi) - Back-End Programming | Best Video for Back-End Programming
![Can you explain cin.ignore() and cin.clear() for C++? When is it appropriate to use these? How do they affect the next cin>>? - Quora Can you explain cin.ignore() and cin.clear() for C++? When is it appropriate to use these? How do they affect the next cin>>? - Quora](https://qph.cf2.quoracdn.net/main-thumb-7228535-200-uzexnsghmbfkvzhgsmigsggetupushts.jpeg)