I'd read it into some sort of class ie:
Code:
class finish_time {
int hours;
int minuts;
int seconds;
}
class racer{
string name;
finish_time time;
}
Have an array, or stack of racer's.
Then read in the name of the racer, store it int the
name member of the class racer, read in the finsh time, store it in the
time assigned to racer, then sort the array with time, as the sort key, and show the sorted ones.