Otherwise, there is also the usleep function (nanoseconds rather than milliseconds) for POSIX (e.g. Linux), or the sleep function (takes seconds rather than milliseconds):
EDIT:
Also, just warning you, text-based games are surprisingly hard, often harder than using a graphics library. See this article: http://www.cplusplus.com/articles/G13hAqkS/