Page 412 - C++
P. 412
// cin>>ch;
ch=getch();
ch=toupper(ch);
switch(ch)
{
case 'A':settextstyle(7,0,5);
for(int i=0;i<3;i++)
{
setcolor(1);
outtextxy(70,150," A. PLAY WORD WRAP.");
delay(800);
setcolor(4);
outtextxy(70,150," A. PLAY WORD WRAP.");
delay(800);
}
wordwrap();
break;
case 'B':settextstyle(7,0,5);
for(i=0;i<3;i++)
{
setcolor(1);
outtextxy(70,250," B. PLAY JUMBLE UP.");
delay(800);
setcolor(4);
outtextxy(70,250," B. PLAY JUMBLE UP.");
delay(800);
}
jumble();
break;
case 'C':settextstyle(7,0,5);
for(i=0;i<3;i++)
{
setcolor(1);
outtextxy(70,350," C. EXIT.");
delay(800);
setcolor(4);
outtextxy(70,350," C. EXIT.");
delay(800);
}
closegraph();
exit(0);
default: cout<<"\nENETR A VALID OPTION.";
getch();
break;
}
}while (ch!='C');
}
//*********************************************************************
void screen1() //FIRST WELCOME SCREEN
{
setcolor(1);
for(int i=0;i<200;i++)
{
circle(300,250,i);