0

could someone help me, i dont know how to show the results...

```
#include <iostream>
#include <fstream>
using namespace std;
int ReadList(int Array[], int N)
{
int list=0;
for(N=0; N<10; N++)
{
list= Array[N];
}
return list;
}
void Avgs (int Array[], int N, int &Ave, int &AveP, int &AveN)
{
int sum=0;
ReadList(Array, N);
for(N=0; N<10; N++)
{
sum = sum + Array[N];
}
Ave= sum/10;
int N2, N3;
int pos[10], nega[10], temp;
int sum_P=0, sum_N=0;
for(N=0; N<10; N++)
{
if (Array[N]>0)
{
pos[N2]=Array[N];
sum_P= sum_P + pos[N2];
N2++;
}
else if (Array[N]<0)
{
nega[N3]=Array[N];
sum_N= sum_N + nega[N3];
N3++;
}
else
{
temp++;
}
}
AveP= sum_P/N2;
AveN= sum_N/N3;
cout << " " << Ave << " " << AveP << " " << AveN;
}
int Large (int Array[], int N)
{
int Max=0;
ReadList(Array, N);
for(N=0; N<10; N++)
{
if(Array[N]>Max)
{
Max=Array[N];
}
}
cout << " " << Max;
return Max;
}
void Display(int Array[], int N, int Ave, int AveP, int AveN, int Max)
{
int numbers[10]={4, -30, 0, 7, 42, -20, 18, 400, -123, -6};
int total=ReadList(numbers, 10);
cout <<total;
}
int main()
{
int Ave, AveP, AveN, Max;
int numbers[10]={4, -30, 0, 7, 42, -20, 18, 400, -123, -6};
Display(numbers, 10, Ave, AveP, AveN, Max);
system("pause");
return 0;
}
```