You have dimension mismatch in your genData
parameter and rain
array:
You have:
double rain [YEARS][MONTHS];
but used it in a wrong way:
void getData (double rainArray[][YEARS], int yearArray[])
//^^^ should be rainArray[YEARS][MONTHS]
similar issue for the printData
function
solved error LNK2019 – I feel like my code should compile but am getting this error [closed]