- May 26, 2005
- 2,141
- 3
- 81
Hello Guys,
I have been working on this one assignment for the past 5 hours...and still havent gotten it to work properly.
I have attached the code.
here are the instructions on what i am supposed to do "
CodeExercise - PExercise10_3
Write two overloaded functions that return the average of an array with the following headers:
int average(int * array, int size);
double average(double * array, int size);
Use {1, 2, 3, 4, 5, 6} and {6.0, 4.4, 1.9, 2.9, 3.4, 3.5} to test the functions.
i have no clue why and what is happening to this, at one point i got it to work
with a instant crash !
Locking this one for now. OP needs to get the basic structure right or generate some specific errors that we can discuss. --Markbnj, AT Programming Moderator
I have been working on this one assignment for the past 5 hours...and still havent gotten it to work properly.
I have attached the code.
here are the instructions on what i am supposed to do "
CodeExercise - PExercise10_3
Write two overloaded functions that return the average of an array with the following headers:
int average(int * array, int size);
double average(double * array, int size);
Use {1, 2, 3, 4, 5, 6} and {6.0, 4.4, 1.9, 2.9, 3.4, 3.5} to test the functions.
i have no clue why and what is happening to this, at one point i got it to work
with a instant crash !
Locking this one for now. OP needs to get the basic structure right or generate some specific errors that we can discuss. --Markbnj, AT Programming Moderator