std::cin.get();

I just made a little program and to stop it before ending it i used the code system ("PAUSE"); and it worked properly, but before i knew about it, i was using std::cin.get(); and it didnt worked, i just wondered, why didnt it worked like the "Pause" one did?
Try this instead;

cin.ignore().get();

That always worked for me without fail.
Topic archived. No new replies allowed.