Does anyone know a way of clearing the istream to stop the program skipping cin lines which should pause to accept data. I've tried using cin.ignore(256,'\n'), but I don't want the user to press enter all the time to clear the buffer stream.
I've tried cin.ignore(256) but that just freezes the program, any ideas?
Thanks.