This is the pointer that is in the class private members double *grades;
This is the function that I retrieve to supposedly compare and transfer the data as you will see in the next coding
1 2
double *getGrades()
{ return grades; }
This is the actual sorting function, do not mind the other values as they work just fine, but the grades get a hell of a messup when I try to change them. I have no idea how to do this and it keeps screwing up.
The issue is that the "return *double" function is the only way I know of how to access the private pointer. I am pretty sure the problem lies there, does anyone care to enlighten me on how to pass the pointer array of a function correctly?