cin.ignore() will ignore one character in the stream (and discard it).
cin.clear() will clear the stream of all data and clear the error flags.
cin.ingnore()
: http://www.cplusplus.com/reference/iostream/istream/ignore/
cin.clear()
: http://www.cplusplus.com/reference/iostream/ios/clear/
Just search on cplusplus.com
ok ok
thanks
now i understand what ignore and clear means
thanks guys