Page 411 - C++
P. 411

public:
               int h[5];
        }ss;
        //*********************************************************************
        class hscorej           // DEFINITION OF THE CLASSES FOR
        {                       // HIGH SCORE OF JUMBLE WORD
               public:
               int h[5];
        }rr;
        //*********************************************************************
        class num
        {
               public:
               char ch[10];
               char chh[4];
               void num1();
        }s;

        void num :: num1()                  // FUNCTION FOR READING WORDS FROM FILE
        {                            // INTO ARRAY wstr[] (Global)
               ifstream fp1;
               char str[50];
               fp1.open("d:/nir/qdict.txt");
               if (!fp1)
               {
                 cout <<"ERROR in opening....";
                 getch();
               }
               do
               {
                 fp1.getline(str,50);
                 strcpy(wstr[iff],str);
                 iff++;
               } while(fp1);
               fp1.close();
        }
        //*********************************************************************
        void dispmenu()        //DISPLAYING THE GAME MODE MENU PAGE
        {
               clrscr();
               char ch;
               do
               {
                   cleardevice();
                   setbkcolor(15);
                   settextstyle(7,0,5);
                   setcolor(12);
                   outtextxy(50,50,"--- MENU PAGE ---");
                   outtextxy(70,150,"  A. PLAY WORD WRAP.");
                   outtextxy(70,250,"  B. PLAY JUMBLE UP.");
                   outtextxy(70,350,"  C. EXIT");
                   settextstyle(8,0,3);
                   setcolor(2);
                   outtextxy(70,400," ENTER YOUR CHOICE(A-C): ");
   406   407   408   409   410   411   412   413   414   415   416