What exactly have you tried? Could you provide a code example of your attempt?
EDIT: Ninja'd...
Ok, there are several issues with your code. First off, line 13 is somewhat wrong, ARRAY_MAX should be 5, not 6 (0, 1, 2, 3, 4: = 5 numbers). Next, there should be spaces between the date types and the variable names. Ex:
intNumbersArray[]
should be
int NumbersArray[]
. Also, when specifying a size for an array, you must use a constant value (or a const variable). So line 39 is wrong, just take the "intCounter" out of the brackets. Last, your calling the functions wrong. You must declare an array inside of main(), then pass it to the functions.
Ex.
1 2 3 4 5 6 7
|
int main()
{
int array[ARRAY_MAX];
InputArray(array);
OutputArray(array);
return 0;
}
|
Another small issue, in your InputArray() function, you create a variable called "intCounter", then your create another variable with the same name inside the for loop. Either take out line 29, or remove the "int" from the for loop on line 31. Its not really a major issue now, but something like that could cause major headaches later on.