I am trying to sort an array of strings, but it\'s not sorting anything.... what am I doing wrong?
string namesS[MAX_NAMES]; int compare (const void * a, co
This is C++, not C. Sorting an array of strings is easy.
#include #include #include std::vector stringarray; std::sort(stringarray.begin(), stringarray.end());