Quote Originally Posted by tejen View Post
This gives me the same output for the names, I need help determining rank 1, rank2, rank3, rank4 and rank5 according to the runners times. The name with the lowest time would be rank1 and so on.
If it were my program, I would create a struct called "Runner" or something along those lines. You could have a string for the runners name included, and then a float for their time. Create a vector of 5 runners. Then, using a sort (for this a bubble sort would suffice) you can reorder the vector in order of which time was the lowest, then the next, then the next, etc. Now, since the runners are completely reordered in the vector, you can use that for loop to output each of their names and times in correct order.