#include <iostream.h>
#include<string.h>
#define ARRAYSIZE 20
void Sort(char *array[], int size);
int main()
{
char *Alpha[ARRAYSIZE] =
{"j","g","m","l","k","b","r","s","a","i",
"h","n","c","q","d","f","e","o","t","p"};
int k;
Sort(Alpha, sizeof(*Alpha));
cout << endl << endl;
cout << "Sorted Numbers: ";
for (k = 0; k < sizeof(*Alpha)+1; k++)
cout << Alpha[k] << " ";
cout << endl << endl << endl;
//system("PAUSE");
return 0;
}// end main()
void Sort(char *array[], int size)
{
int pass, k;
char *temp;

for (pass=0; pass < size - 1; pass++) {
for (k=0; k<size - 1; k++) {
if (strcmp(array[k], array[k+1]) > 0) {
temp = array[k];
array[k] = array[k+1];
array[k+1] = temp;}}}}