Please help, I do not understand the correlation between the function definition and the call in main. My program is receiving build errors- please assist with determining what the definition of this program should be. Thank you!
#include <iostream>
using namespace std;
void yrCalc(int totalDays, int& year, int& month, int& day);
int main ()
{
int year, month, day, totalDays;
year = 1900 + totalDays / 365;
totalDays = year * 365;
yrCalc(40000, year, month, day);
cout << year << " - " << month << " - " << day << endl;
return 0;
}
void yrCalc(int totalDays a, int& year b, int& month c, int& day d)
(
totalDays = a;
year = b;
month = c;
day = d;
return;
}