I don't like using ststem("PAUSE"); to pause my program, so instead I use something along the lines of cin.get('\n'), and tell the user to press enter.
The problem is, if there was somethingpreviously in the istream, it carries over, including the new line character. So my program ends withoput prompting.
Is there a way I can clear my istream so that nothing is carried over into what I input next?
I know there is a cin.clear() function, but I am not sure what patameters it takes, or if just sounds like what I would want.