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
Here is C++ another way to sort array of string without using .
#include #include using namespace std; int main() { string WordArray[] = {"AA","DD","CC","BB","ZZ","NN"}; sort(begin(WordArray), end(WordArray)); /*Sort the Array*/ for(auto& Word: WordArray){ cout<