Question: C++ age calculation function I have written code to get user input for their birth day, month, and year (all ints). All of that gets

C++ age calculation function

I have written code to get user input for their birth day, month, and year (all ints). All of that gets put in a struct called Date which I initialize in main with Date input for the birth date and Date output for the desired date. therefore to reference them you would use input.day, input.month and input.year and so on using output instead of input. What I need now is a function to take these structs and calculate the users age based on their input. You can just call the function CalculateAge.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!