Page 483 - C++
P. 483

Hospital Management: Admission of Patients
            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 Ward
            {
                   int Ward_no;
                   jnt No_beds,Bed_bkd;
                   float charges;
                   public:
                   void VGetdata();
                   void Vdisplaydata();
                   int Return_Ward_no(){return Ward_no;}
                   int Return_Ch()
                   {
                          if (Bed_bkd+1<=No_bed)
                                 return 1;
                          else
                                 return 0;
                   }
                   int Return_charges()
                   {                   return charges;                     }
                   void update_bed()
                   {
                                 Bed_bkd=Bed_bkd-1;
                   }
            };
   478   479   480   481   482   483   484   485   486   487   488