title: Qsort parallel arrays using pointers
body: <p>I am trying to do a parallel qsort in C++ .  I have numeric array which is sorting fine and I want a parallel 2 dimensional character array to move up or down with its numbers.  This is what I have so far.</p>
  
  <pre><code>    int compare (const void * a, const void * b)
      {
          //this is for qsort
          return ( *(int*)b - *(int*)a );
      }
  
      void sort_scores(char** myArray, int *votes)
      {
          qsort ((myArray, votes ), 5, sizeof(int), compare);
      }
  </code></pre>
  
  <p>I get a sort on the numbers but short of moving the characters one at at time I can't seem to get this to work. Any help is much appreciated.</p>