I've got an assignment for my C++ class which basically goes like this: Write a program which will accept the names and finish times of 3 racers, and will determine and display their finish order. You may assume that there are no ties, i.e. no one has a duplicate finish time.
My final output keeps coming up messed up, can anyone give me a better idea of what i might be doing wrong?
Your if statements doesn't match your indentation. Look where you have placed the {}.
The semicolon after else means it should do nothing in the else case which is probably not what you want.
I also think you have forgot to handle all the possibilities. Consider the case when run_time1 > run_time3 > run_time2. You don't handle that case.