Page 415 - C++
P. 415

for(int i=0;i<6;i++)
               {
                  for(int j=0;j<10;j++)
                  {
                       outtextxy(i*150,j*48,"WRONG WORD!");
                  }
                  delay(100);
               }
               getch();
               cleardevice();
        }
        //*********************************************************************
        void congrats()         //TO DISPLAY THE SUCCESS OF THE USER
        {
               cleardevice();
               setbkcolor(15);
               setcolor(4);
               settextstyle(5,0,1);
               outtextxy(20,200,"CONGRATS! YOU HAVE COMPLETED THIS LEVEL");
               outtextxy(20,250,"LET'S MOVE ON TO THE NEXT STAIR OF SUCCESS");
               outtextxy(20,300,"IN THE GAME");
               getch();
        }
        //*********************************************************************
        int sort()
        {
               for(int i=0;i<4;i++)
               {
                  if(score>=rr.h[i])
                  {
                     for(int j=4;j>i;j--)
                     {
                       rr.h[j]=rr.h[j-1];
                     }
                     rr.h[i]=score;
                     return 1;
                  }
               }
               return 0;
        }
        //*********************************************************************
        void jumble()           //JUMBLE-UP GAME
        {
               char rep;
               char str[15][3];
               int ctr=0;
               int r;
               do
               {
                  cleardevice();
                  r=rand()%40;
                  ctr=strlen(wstr[r]);
                  for(int i=0;i<ctr;i++)
                  {
   410   411   412   413   414   415   416   417   418   419   420