ATTENTION!!!: This assignment is for a basic and introductory C++ course. As suc
ID: 3836513 • Letter: A
Question
ATTENTION!!!: This assignment is for a basic and introductory C++ course. As such, please do not use complex or obscure opperations and headers that would typically be used in advanced classes as we have not learned them yet. Use only very simple functions and headers. If you are unsure of whether a technique is too advanced, dont use it. If you can answer the question without using a function, please do so.
"C type" string is implied to mean an array of characters with an end of string mark following the last character.
Write a structure definition named Person that will allow the structure to hold a last name of 30 characters, a first name of 20 characters, the person's date of birth (month, day, year), and the number of children the person has. The structure will also need to have the address of another structure of the same type in case this person has a spouse.
Explanation / Answer
struct Person
{
char lastName[30];
char firstName[30];
int birthDay;
int birthMonth;
int birthYear;
int numOfChildren;
struct Person *spouse;
};
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.