Just cin.ignore() will do.