Please, can someone help me with this program? I am totally lost.
This program should have three functions.
Function1 (FillPerson) should ask user to enter all the name and birthday information. Prototype for this function1 is: person FillPerson();
Function2 called WritePerson should write out all the person information using the name of the month (as opposed to the integer value) for the birthday month. The prototype for this function2 is: void WritePerson(Person);
Program should have two Person variables. It should fill these two variables and then call a function called WhoIsOlder. Function3 determines who is older and writes the age status to the screen.
The program is:
int WhoIsOlder(int p1, int p2);
MyPerson = FillPerson();
cout << "\n Enter the person's name: ";
cout << "\n Enter the person's date of birth: ";
cin >> insert.month >> insert.day >> insert.year;
cout << "\n Name of the person is << "MyPersons.name <<
",and date of birth is " << insert.month <<
insert.day << insert.year<< endl;
cout << "\n The older person is "<< MyPerson;
int WhoIsOlder( int p1, int p2);
if (p1 > p2)
else (p1 < p2);
Anything would help.