Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started