I'm having trouble figuring out function parameters for my program. This is my code so far. How can I fix my program so that it will work properly.
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. Provide a the following functions:
getData: Read values into the array
displayData: Print out the highs and lows for each month
averageHigh: Calculates and returns the average high temperature
void getData(float[][]);
...
int main()
{
int months [12][2];
getData(months);
...
}
void getData(int months [][2])
{
for(int i = 1; i < 13; i++)
{
...
cout << "Enter the high temperature for " << i << endl;
cin >> months[i-1][1]; // Note: [i-1] because an array starts with 0 / [1] store the high temperature in the second field
...