Below are the structs defined in section 1.3. Your task now is to create complete program that utilizes these structs. Be creative on how you will use the structs in your program.
struct NameType{
string first;
string middle;
string last;
};
struct AddressType{
string address1;
string address2;
string city; string state;
string zip;
};
struct DateType{
int month;
int day;
int year;
};
struct ContactType{
string phone;
string cellphone;
string fax;
string pager;
string email;
};
struct EmployeeType{
NameType name;
string emp_id;
AddressType address;
DateType hireDate;
DateType quitDate;
ContactType contact;
string dept_id;
double salary;
};
Not fully provided the question requirements;
Comments
Leave a comment