quit the program right there |
delete things that have been shown already in the program |
pause for a certain amount of time (not system("pause")) |
Sleep( milliseconds_to_sleep )
(#include <windows.h>), and there are other similar functions for other APIs.