I've been trying to find a C++ equivalent to C's fflush(stdin), but none seem to work. cin.ignore(), cin.ignore(x), cin.ignore (x,'\n'), and cin.clear() don't work for a simple cin>>x when I input characters. It's not the attempt to convert chars to an int because I've tested and error handled that portion. I think for some reason there's still a '\n' or something floating around in the buffer that I can't seem to get rid of. I'd prefer not to use C for the sake of consistency, but if there's no equivalent I guess I have no choice. Any ideas? Thanks!