Page 485 - C++
P. 485

Hospital Management: OPD
            A project to store record of Doctors and patients, their Fee record and to generate Bills

            struct Doctor_time
            {
                   char day[20];
                   int Hour,Minute;
            };
            class Doctor
            {
                   int Doctor_code;
                   char Name[30],FatherName[20],Address[30],Phone[10],Mobile[15],
            Qualificaton[20],Special[20];
                   int Experience;
                   float Fee;
                   public:
                   void DGetdata();
                   void DDisplaydate();
                   int Return_Check(char *S)
                   {
                          if(strcmp(Special,S)= =0)
                                 return 1;
                          else
                                 return 0;
                   }
                   int Return_Fee( )
                   {
                                 return Fee;
                   }

                   char *Return_Name() {        return Name;   }
            };
            Class Visit
            {
                   Int Dcode;
                   Doctor_Time T[5];
                   public:
                   void VGetdata();
                   void Vdisplaydata();
                   int Return_Ch(int H,int Tl)
                   {
                          for(int i=0;i<5;i++)
                          {
                                 If(T[i].Hour = =H && T[i].Minute = = Tl)
                                         return 1;
                          }
                          return 0;
                   }
                   int Return_dcode()
                   {
                          Return Dcode;
                   }
            };
   480   481   482   483   484   485   486   487   488   489   490