#include <iostream>
usingnamespace std;
double avgArray(int []);
int main()
{
constint SIZE = 10;
int userNums[SIZE];
cout << "Enter 10 numbers: ";
for (int count = 0; count < SIZE; count++)
{
cout << "#" << (count + 1) << " ";
cin >> userNums[count];
}
cout << "The average of those numbers is ";
cout << avgArray(userNums, SIZE) << endl;
system("PAUSE");
return 0;
}
double avgArray(int arr[])
{
double total = 0.0, average;
for (int count = 0; count < 10; count++)
total += arr[count];
average = total / 10;
return average;
}
---------------------------------------------------------------------
4 too many arguments to function `double avgArray(int*)'
18 at this point in file