void PrintFile(FILE * fp)
{
int i = 0;
while (!feof(fp))
{
char ch = fgetc(fp);
cout << ch;
Sleep(30);
if (i % 2 == 0)
{
string color;
int num;
while (num < 15)
{
num = rand();
}
switch (num)
{
case 1 :
system("color ab");
case 2:
system("color ac");
case 3:
system("color ad");
case 4:
system("color ae");
case 5:
system("color af");
case 6:
system("color bc");
case 7:
system("color bd");
case 8:
system("color be");
case 9:
system("color bf");
case 10:
system("color cd");
case 11:
system("color ce");
case 12:
system("color cf");
case 13:
system("color de");
case 14:
system("color df");
}
}
}
}