DR - Name DR - Specialty DR - Experience DR - Age DR - Contact DR - Appointmnet - No

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

#include<iostream>

#include<string>
using namespace std;
struct doctor
{
string dr_name;
string dr_specialty;
string dr_experience;
int dr_age;
string dr_contact;
string dr_appointmnet_no;
};
struct patient{
string p_name;
string p_age;
string p_contact;
string p_disease;
};
string h_o_d[];
void Patient(string symptoms, string conditions, string h_o_d[])
{
for (int i = 0; i < 10; i++)
{
cout << "enter patient syntoms :";
cin >> symptoms;
cout << "enter patient condition :";
cin >> conditions;
cout << "enter patient disease :";
for (int i = 0;; i++)
{
cin >> h_o_d[i];
if (h_o_d[i] == "bas")
{
break;
}
if (h_o_d[i] == "zukam" || h_o_d[i] == "nazla")
{
cout << "fever";
}
else if (h_o_d[i]=="gas" || h_o_d[i]=="petdard")
{
cout << "kabz";
}
}

}
}
patient p;
void display(string patient)
{

}
int main()
{
return 0;
}

You might also like