Question: Declare a struct named PatientData that contains two integer data members named heightInches and weightPounds. Sample output for the given program: Patient data: 63 in,
Declare a struct named PatientData that contains two integer data members named heightInches and weightPounds. Sample output for the given program:
Patient data: 63 in, 115 lbs
#include
/* Your solution goes here */
int main() { PatientData lunaLovegood;
lunaLovegood.heightInches = 63; lunaLovegood.weightPounds = 115;
cout << "Patient data: " << lunaLovegood.heightInches << " in, " << lunaLovegood.weightPounds << " lbs" << endl;
return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
