Page 395 - C++
P. 395

//*********************************************************
          //****************PROJECT ON FEE MANAGEMENT****************
          //*********************************************************
          //****************HEADER FILES ARE INCLUDED****************

          #include<conio.h>
          #include<process.h>
          #include<stdio.h>
          #include<ctype.h>
          #include<string.h>
          #include<fstream.h>
          #include<dos.h>
          #include<iomanip.h>


         void draw_box(int s_row,int s_col,int e_row,int e_col);

         //**********************************************************
         //************* CLASS TO DRAW LINES ************************
         //**********************************************************

         class DRAW
         {
                public :
                        void LINE_HOR(int, int, int, char) ;
                        void LINE_VER(int, int, int, char) ;
         };

         void DRAW :: LINE_HOR(int column1, int column2, int row, char c)
         {
                for (column1; column1<=column2; column1++)
                {
                        gotoxy(column1,row);        //places the ptr. at the specified coordinates
                        cout <<c;
                }
         }

         void DRAW :: LINE_VER(int row1, int row2, int column, char c)
         {
                for (row1; row1<=row2; row1++)
                {
                        gotoxy(column,row1);
                        cout <<c;
                }
         }

         //*********************************************************
         //*********** FUNCTION TO DRAW BOX ************************
         //*********************************************************

         void draw_box(int s_row,int s_col,int e_row,int e_col)
         {
                int i;
                for(i=s_col;i<=e_col;i++)
   390   391   392   393   394   395   396   397   398   399   400