Guest User

Untitled

a guest
Jul 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include<string.h>
  4. #include<process.h>
  5. #include<fstream.h>
  6. class patient
  7. {
  8. protected:
  9. char name[10];
  10. char sex;
  11. int age;
  12. char insurance;
  13. char phnum[10];
  14. char add[3][20];
  15. char history[30];
  16. char symtoms[30];
  17. public:
  18. void getdata()
  19. {
  20. cout<<"Enter the Patient details:\nName: ";
  21. cin>>name;
  22. cout<<"\nAge:";
  23. cin>>age;
  24. cout<<"\nSex:";
  25. cin>>sex;
  26. cout<<"\nInsurance: Y/N?";
  27. cin>>insurance;
  28. cout<<"\nAddress:";
  29. cin>>address;
  30. cout<<"\nPhone Number:";
  31. cin>>phnum;
  32. cout<<"Previous illness\n:";
  33. cin>>history;
  34. cout<<"Symptoms\n";
  35. cin>>symtoms;
  36. }
  37.  
  38. void putdata()
  39. {
  40. }
  41. };
  42.  
  43.  
  44. class doctor
  45. {
  46. protected:
  47. char dname[20];
  48. int dage;
  49. int dexp;
  50. char dspecial[20];
  51.  
  52. public:
Add Comment
Please, Sign In to add comment