#include <iostream>
using namespace std;

int main()
const int NUM_NAMES = 20, Size = 17;
char names[NUM_NAMES] = {"lonney, Bill", "travis, Jim", "Harrison, Bob", "Holland, Beth"};

i need a simple program that uses the selectionSort function so it searches an array of strings instead of an array of ints. The output of the program must have the names in ascending order...thanks for your help!!!

You do know that you've declared a 2-d arrays of chars, not an array of strings right?

If you use std::string, you could use the swap() function, which might be very handy with selection sort.

If you google for sort and strings, you'll get some nice demo-code.