I'm extremely new to c++- this is a homework question- I do not understand how to write my program for this problem:
Write a function named yrCalc() that has an interger parameter representing the total number of days since the turn of the last century (1/1/1900) and reference parameters named year, month, and day. The function is to calculate the current year, month, and day for the given number of days passed to it. Using the references, the function should directly alter the respective actual agruments in the calling function. for this problem, assume that each year has 365 days and each month has 30 days.
I do not know how to figure out the calculation but, this is what I know so far which is not much:
#include <iostream>
using namespace std;
void yrCalc [double& year, double& month, double& day];
int main()
[
double year, month, day;
int numdays =
Please help!