OK, I have a bubble sort function, which i've adapted to sort a list of names alphabetically. But the function won't sort past the first character in each word, so I get a list of names beginning...
Type: Posts; User: arih56
OK, I have a bubble sort function, which i've adapted to sort a list of names alphabetically. But the function won't sort past the first character in each word, so I get a list of names beginning...
But i'm not sure how or where to insert strcmp into the code.
I have a heapsort function which i've used to sort a list of integers. How do I adapt this function to sort a list of strings alphbetically?
My sort function is:
int temp, item, j;
for(int...