If you use DEV-C++ to compile clrscr(); will help to make it flash, use conio.c. But if you use MSVC++ use cout << endl; just before using SYSTEM("CLS"); as it clears the buffer. Windows.h for this one. Should help you with most of it. Then you just have to place it in an appropriate loop.