Ok, I want to clear the input buffer of any data that is over the the size of my character array.
I have tried using cin.ignore() and cin.ignore(20, '\n' and cin.clear (though im not fully aware of how cin.clear()) works.
Is there anyway i can fix this or make it so crap after the my character array is thrown away?Code:cin.clear(); cin.ignore(20, '\n'); cin.get(); cout << cin.get() << endl;
THANK YOU !!!