Hitting "Enter" to continue

In a text based, C++, game I would like the user to have to hit enter (with a text setup saying "hit enter to continue...") as a function that runs whenever I tell it too. How would this work? I know how to declare functions, tell them when to run... etc. I just don't know how this particular function design would be implemented. I am told I should use #include <limit>? But I don't know if that is correct, nor do I know how to use it.

Any help appreciated!
closed account (E0p9LyTq)
A good start, if a bit long, would be reading this:

Console Closing Down
http://www.cplusplus.com/forum/beginner/1988/
Topic archived. No new replies allowed.