So I am in class, and we are supposed to create a selection sort using a class List. He is very specific about all the functions he wants in the class, etc. I am having trouble with two things.
1. The formatted output should have only 10 numbers per line. The c variable in the Print function should be taking care of this, but seems to not be working.
2. My sort algorithm effectively seems to be broken, but I'm not sure what I missed. My input is:
void Sort(void){
int eol = count -1;
while (eol >= 1) {
int iom = 0;
int i = 1;
//¿what is this loop supposed to do?
while (L[i] >= L[iom]){
iom = i;
i++;
}
swap(L[iom], L[eol]);
eol--;
}
}