Any boots in the right direction would help immensely!
I have this sort working properly for sorting the average array, but cant seem to figure out the name.
I would like to keep it a bubble sort, as this is what we are being taught in class.
As it stands it is not sorting it whatsoever, when I display the array it simply displays it in the order it was created.
This does not work for comparing C-strings. I'd suggest using an std::string instead, which will allow that kind of comparison. Or, if you are stuck with C, use strcmp().
You should compare for > 0, as strcmp() can technically return any number greater than zero, 0, or any number less than zero. Generally, I would assume implementations just use 1, 0, and -1 but you should be aware that a conforming implementation could use anything.