So, you want a delay in your loop ... "pause" diverted all of us to something different.

Anyway, you can do it like this :

For TurboC++ ::
Code:
#include <dos.h>
.
.
.
for(...)
{
    .
    .
    delay(x); // This will put a delay of x milliseconds
    .
    .

}
For ANSI C++ ::
Code:
#include <windows.h>
.
.
.
for(...)
{
    .
    .
    Sleep(x); // This will put a delay of x milliseconds
    .
    .

}
mayjune like this