The idea is to take two space delimited strings, and discard the rest of the input. For example, entering "one two three" would discard everything after "two". Both cin.ignore and cin.sync do the job, but I'm curious, whats the difference of them in this context?