There are several issues in this code, for starters:
CopyData is declared as:
void CopyData ( string [], int)
on main() you call:
void CopyData (string, int [])
And on the function definition it is:
void CopyData (int [])
To the compiler, those three are three different functions, so your code probably does not build.
You are trying to read things from a file, correct? Why is the function name "CopyData" to begin with?
Also, you declared a const int N on the begining of the code, and you interchangeably define another variable called n, type int, on some functions you parse an integer, but on the code you use the global const int N on loops, for example:
1 2 3 4 5 6 7
|
void DisplayArray(int a[], int n)
{
for (int i = 0; i < N; i++)
{
std:: cout << "This is array: " << a[i];
}
}
|
You also have the same type/arguments problems on the functions Display and FindMaxMin.
The function FindAve is never defined.
You are using the variables max and min with no initialization. Etc.
So solve all those issues first, after you code compile, then send over the code again if there are still problems. If you absolutely can not get it to compile, or if you dont understand what I said, you will need to step back and wrap your head better around variables, types and functions first, perhaps with a more simple task. GL!