Page 418 - C++
P. 418

outtextxy(220,150,"I");
                     outtextxy(280,150,saa);
                     outtextxy(220,180,"II");
                     outtextxy(280,180,sab);
                     outtextxy(220,210,"III");
                     outtextxy(280,210,sac);
                     outtextxy(220,240,"IV");
                     outtextxy(280,240,sad);
                     outtextxy(220,270,"V");
                     outtextxy(280,270,sae);
                     outtextxy(200,400,"YOUR SCORE");
                     outtextxy(350,400,sas);
                     getch();
                     sc.close();
                     getch();
                  }
                  cleardevice();
               }while(rep=='Y');
               cleardevice();
        }
        //*********************************************************************
        int sort1()
        {
               for(int i=0;i<5;i++)
               {
                  if(score>=ss.h[i])
                  {
                     for(int j=4;j>i;j--)
                     {
                        ss.h[j]=ss.h[j-1];
                     }
                     ss.h[i]=score;
                     cout<<ss.h[0]<<'\n';
                     cout<<ss.h[1]<<'\n';
                     cout<<ss.h[2]<<'\n';
                     cout<<ss.h[3]<<'\n';cout<<ss.h[4]<<'\n';
                     getch();
                     return 1; // functon returns 1 if score is in top 5
                  }
               }
               return 0;            // functon returns 0 if score is NOT in top 5
        }
        //*********************************************************************
        void wordwrap()        //WORD-WRAP GAME
        {
               cleardevice();
               setbkcolor(15);
               setcolor(12);
               settextstyle(6,0,3);
               outtextxy(150,75, "WELCOME TO THE WORLD OF ALPHABETS");
               outtextxy(150,115,"IN THE GAME, YOU WILL HAVE TO MAKE ");
               outtextxy(150,155,"THREE LETTER WORDS FROM THE WORD GIVEN.");
               outtextxy(150,195,"NO REPETITION IS ALLOWED.");
               outtextxy(150,235,"TYPE THE ALPHABET YOU WANT TO USE AND PRESS ENTER.");
   413   414   415   416   417   418   419   420   421   422   423