Answers for "entering char in int c++ avoid loop"

C++
0

entering char in int c++ avoid loop

cin.clear();
cin.ignore(100, '\n'); //100 --> asks cin to discard 100 characters from the input stream.
Posted by: Guest on January-05-2021

Browse Popular Code Answers by Language