Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- #include<conio.h>
- #include<string.h>
- #include<process.h>
- #include<fstream.h>
- class patient
- {
- protected:
- char name[10];
- char sex;
- int age;
- char insurance;
- char phnum[10];
- char add[3][20];
- char history[30];
- char symtoms[30];
- public:
- void getdata()
- {
- cout<<"Enter the Patient details:\nName: ";
- cin>>name;
- cout<<"\nAge:";
- cin>>age;
- cout<<"\nSex:";
- cin>>sex;
- cout<<"\nInsurance: Y/N?";
- cin>>insurance;
- cout<<"\nAddress:";
- cin>>address;
- cout<<"\nPhone Number:";
- cin>>phnum;
- cout<<"Previous illness\n:";
- cin>>history;
- cout<<"Symptoms\n";
- cin>>symtoms;
- }
- void putdata()
- {
- }
- };
- class doctor
- {
- protected:
- char dname[20];
- int dage;
- int dexp;
- char dspecial[20];
- public:
Add Comment
Please, Sign In to add comment