Sorting algorithm (Easy but long)
Posted on 2001-06-03
// I have this class:
long int zip;
long int phone;
Person(char *First,char *Last,char *Address,char *City,char *State, long int zip, long int phone);
// I have array of Person objects that need to be sorted by last,first name. Assume the array has 50 or less items and should be sorted using a simple Quick sort or Merge sort whichever is more efficient."NO BUBBLE SORT I can do that". For an A grade I need code that will work and an explanation of how it works. Please make the code as simple as possible.