saykotislam

Untitled

Aug 18th, 2021
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. /*
  5. void d_patient()
  6. {
  7. int n;
  8. cout<<"Patient Data Entry"<<endl;
  9.  
  10. cout<<"Enter Number of Patient: ";
  11. cin>>n;
  12. int id[n];
  13. string name[n],bg[n];
  14. for(int i=0;i<n;i++){
  15. cout<<"Enter Patient Name: ";
  16. cin>>name[i];
  17. cout<<"Enter Patient ID: ";
  18. cin>>id[i];
  19. cout<<"Enter Patient Blood Group: ";
  20. cin>>bg[i];
  21. }
  22. // sort()
  23. for(int i=0;i<n;i++){
  24. cout<<"Patient:- "<<i+1<<endl;
  25.  
  26. cout<<"Patient Name: ";
  27. cout<<name[i]<<endl;
  28. cout<<"Patient ID: ";
  29. cout<<id[i]<<endl;
  30. cout<<"Patient Blood Group: ";
  31. cout<<bg[i]<<endl;
  32. cout<<endl;
  33. }
  34. }
  35.  
  36. void d_donar()
  37. {
  38. int n;
  39. cout<<"Donar Data Entry"<<endl;
  40.  
  41. cout<<"Enter Number of Donar: ";
  42. cin>>n;
  43.  
  44. int id[n];
  45. string name[n],bg[n],re[n],cn[n],ad[n];
  46.  
  47. for(int i=0;i<n;i++){
  48. cout<<"Enter Donar Name: ";
  49. cin>>name[i];
  50. cout<<"Enter Donar ID: ";
  51. cin>>id[i];
  52. cout<<"Enter Donar Blood Group: ";
  53. cin>>bg[i];
  54. cout<<"Enter Donar Medical Report: ";
  55. cin>>re[n];
  56. cout<<"Enter Donar Contact Number: ";
  57. cin>>cn[n];
  58. cout<<"Enter Donar Address: ";
  59. cin>>ad[n];
  60. cout<<endl;
  61. }
  62.  
  63. for(int i=0;i<n;i++){
  64. cout<<"Donar :- "<<i+1<<endl;
  65. cout<<"Donar Name: ";
  66. cout<<name[i]<<endl;
  67. cout<<"Donar ID: ";
  68. cout<<id[i]<<endl;
  69. cout<<"Donar Blood Group: ";
  70. cout<<bg[i]<<endl;
  71. cout<<"Donar Medical Report: ";
  72. cout<<re[n]<<endl;
  73. cout<<"Donar Contact Number: ";
  74. cout<<cn[n]<<endl;
  75. cout<<"Donar Address: ";
  76. cout<<ad[n]<<endl<<endl;
  77. }
  78. }
  79. */
  80.  
  81. void d_bloodbank()
  82. {
  83. int n;
  84. cout<<"Blood Bank Data Entry"<<endl;
  85.  
  86. cout<<"Enter Number of Blood Bank: ";
  87. cin>>n;
  88.  
  89. int id[n];
  90. string name[n],bg[n]cn[n];
  91.  
  92. for(int i=0;i<n;i++){
  93. cout<<"Enter Blood Bank Name: ";
  94. cin>>name[i];
  95. /*cout<<"Enter Donar ID: ";
  96. cin>>id[i];*/
  97. cout<<"Enter Blood Bank Address: ";
  98. cin>>bg[i];
  99. cout<<"Enter Blood Bank Contact Number: ";
  100. cin>>re[n];
  101.  
  102.  
  103. cout<<endl;
  104. }
  105.  
  106. for(int i=0;i<n;i++){
  107. cout<<"Donar :- "<<i+1<<endl;
  108. cout<<"Donar Name: ";
  109. cout<<name[i]<<endl;
  110. cout<<"Donar ID: ";
  111. cout<<id[i]<<endl;
  112. cout<<"Donar Blood Group: ";
  113. cout<<bg[i]<<endl;
  114. cout<<"Donar Medical Report: ";
  115. cout<<re[n]<<endl;
  116. cout<<"Donar Contact Number: ";
  117. cout<<cn[n]<<endl;
  118. cout<<"Donar Address: ";
  119. cout<<ad[n]<<endl<<endl;
  120. }
  121.  
  122.  
  123.  
  124. }
  125. int main()
  126. {
  127. //d_patient();
  128. //d_donar();
  129. d_bloodbank()
  130.  
  131.  
  132. }
RAW Paste Data