Page 414 - C++
P. 414

switch(ch)
              {
               case 'A': settextstyle(7,0,5);
                         for(int i=0;i<3;i++)
                         {
                            setcolor(1);
                            outtextxy(70,150,"  A. ADMIN MODE.");
                            delay(300);
                            setcolor(4);
                            outtextxy(70,150,"  A. ADMIN MODE.");
                            delay(300);
                          }
                         clrscr();
                         cleardevice();
                         rectangle(10,10,630,470);
                         admin_menu();
                        break;
               case 'B':settextstyle(7,0,5);
                        for(i=0;i<3;i++)
                        {
                            setcolor(1);
                            outtextxy(70,250,"  B. GAME MODE.");
                            delay(800);
                            setcolor(4);
                            outtextxy(70,250,"  B. GAME MODE.");
                            delay(800);
                        }
                        dispmenu();
                        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 wrong()          //TO DISPLAY THE FAILURE OF THE USER
        {
               cleardevice();
               setcolor(4);
               setbkcolor(15);
               settextstyle(3,0,3);
   409   410   411   412   413   414   415   416   417   418   419