You are on page 1of 3

//******************************************************************************

//
HEADER FILE USED IN THIS PROGRAM
//*****************************************************************************
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
#include<stdlib.h>
#include<dos.h>
//*****************************************************************************
//
CLASS USED IN THIS PROGRAM
//*****************************************************************************
class patient
{
public:
void admin();
void enq();
void doctor();
//void terat();
//void hospital();
//void amount();
};
//****************************************************************************
//
OUTSIDE CLASS DECLARATION
//*****************************************************************************
void patient::admin() //Administrator
{
clrscr();
int opt;
cout<<"\n1.Doctor details.\n2.Enquiry form.\n3.patient Details.\n4.Medicinal Det
ails.";
cout<<"\n Enter your option in numaric value(1-4):";
cin>>opt;
switch(opt)
{
case 1:
cout<<"\n1.\tDr.Begani(M.D)\n2.\t Heart Spsalist \n2.\t Dr.Rohan Devari
ya(Dentist)\n 3.\tDr.vijay patel(M.B.B.S)Bone spealist";
break;
case 2:
cout<<"\n Enter your name:";clrscr();
char cname[15];
cin>>cname;
cout<<"\n Enter your Contact Number:";
int cno;
cin>>cno;
cout<<"\n Enter your Address:";
char add;
cin>>add;
break;
case 3:
cout<<"\n Enter patient number:";
int no;
cin>>no;
cout<<"\n Enter patient Name:";
char name[15];
cin>>name;
break;

case 4:
cout<<"\n 1.Combiflam\n 2.Saridon\n 3.";
break;
default:
cout<<"\n Invalid numaric value you are print";
}
}
void patient::enq() //Enquiry
{
cout<<"\n Enter your name:";
char pname[15];
cin>>pname;
cout<<"\n Enter your Contact Number:";
int cno;
cin>>cno;
cout<<"\n Enter your Address:";
char add;
cin>>add;
}
void patient::doctor()
{
clrscr();
cout<<"\n 1.\tDr.Begani(M.D)\t Heart Spsalist \n2.\t Dr.Rohan Devariya(Dentist
)\n 3.\tDr.vijay patel(M.B.B.S)Bone spealist";
}
//*****************************************************************************
//
MAIN BODY DECLARATION
//*****************************************************************************
void main()
{
int b;
clrscr();
cout<<"\n \n \t \t \t \t HOSPITAL PROJECT";
cout<<"\n \t\t\t\t******************";
cout<<"\n \t\t\t\t******************";
cout<<"\n \n ****MADE BY***";
cout<<"\n\n 1.SHRADDHA SINGH\n 2.VIJAY MALI\n 3.PRIYANKA SHINDEY\n 4.NA
RESH\n 5.DIPTI VASAIKAR";
if
cout<<"\n \t\t\t|MAIN MENU:|";
cout<<"\n \t\t\t*************";
cout<<"\n\n\t\t\t1.ADMINISTRATOR \n \t\t\t2.DOCTORE DETAILS\n \t\t\t3.E
NQUIRY FORM\n\t\t\t4.TREATMENT ABOUT\n \t\t\t5.ABOUT HOSPITAL";
cout<<"\n\n\t\t\t Enter your option(1-5)-:";
cin>>b;
clrscr();
patient a; //Class objedct
switch(b)
{
case 1 :
a.admin();
break;
case 2:
a.doctor();
break;
case 3:

a.enq();
break;
}
getch();
}

You might also like