i am trying sort an array that is in a structure and be able to sort along the other records associated with the array.
here is my structure
Employee Record; // initialize the structure
sort(Record) // call the sorting function
Employee sort(Record SO) //i am using selection sort
int startscan, minindex, minivalue;
for(startscan = 0; startscan < (size-1); startscan++)
minidex = startscan;
minivalue = ??? how do I assign to the array/structure???
i want to sort by the names and when they are sorted to be able to change all other values, so that when i display the sorted arrays, i see the info in sorted order with their respective variables i.e. hours, rate, ssn...