How can I make a loop wait before repeating?

I've been reading Jumping into C++ by Alex Allain (really good for getting started with c++, I recommend checking it out if you haven't already)
But I'm on the practice problem where I make a program that does all the lyrics to "99 bottles of beer" and I think I've got it down, but I was just wondering if anyone knows how I could get the program wait a few seconds before looping again? Here is my code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 #include <iostream>
#include <string>

using namespace std;
int i = 99;
int main()
{
   string txt(" bottles of beer on the wall, \n");
   string txt2(" bottles of beer, take one down, pass it around, \n");
   string txt3(" bottles of beer on the wall! \n");

   while(i > 0)
   {

   cout << i << txt << i << txt2;
   i = i - 1;
   cout << i << txt3;

   }
}
Nevermind, figured it out :D
Topic archived. No new replies allowed.