Hi , i got a problem of cin concept :
i dont know what is the meaning of cin.clear() and cin.sync() ?
please help /_\ i have considered a long time
cin.clear() clears the error state of the stream.
cin.sync() has no meaning, although in some compilers it will remove existing data from the buffer associated with cin.
ignore would be a better choice than sync