title: String Selection Sort C++
body: <p>How would I modify a selectionSort function to search an array of strings?</p>
  
  <pre><code>void selectionSort (int array[], int size)
  {
      int startScan, min Index, minValue;
      for (startScan = 0; startScan&lt;(size-1); startScan++)
      {
          minIndex=startScan;
          minValue=array[startScan];
          for(int index = startScan + 1;index&lt;size;index++)
          {
              if (array[index] &lt; minValue)
              {
                  minValue=array[index];
                  minIndex=index;
              }
          }
      }
  }
  </code></pre>