How to pause in C

Discuss How to pause in C in the C/C++ Help forum on Dev Articles. How to pause in C C/C++ Help forum discussing building and maintaining applications in C/C++. Find out why these languages are the foundation on which other languages are built.

I always just add a separate variable, and for a cin at the end of the program. I think I only run into the window-dropping problem with VS 6.0, seems to hang on the screen untill closed with .net. I'm sure there's a pause function of some sort out there, but I've always felt it was easier to do it this way:

I agree, There probably is a better way of doing it, but I do the same thing. If you are writing a program were you want your user to see the final result of there last question or something it always helps to have the last operation, the user inputting some type of integer. and just to add to your code Diocletian, you could also do something like this!!