View Single Post
Old 10-14-2004, 07:52 PM   #6 (permalink)
B00tleg
Registered User
 
B00tleg's Avatar
 
Join Date: Oct 2004
Posts: 9
B00tleg is on a distinguished road
Thanks for the reply. I'm actually trying to figure out how I'm going to write this program right now. I'm gonna be up for a while. What I don't understand is how I'm supposed to use only If Else-If statements to do it. I can see how I'd use them to evaluate the run times to see who got first, second and third place. But how do I display the runner's names with the correct finish times. It would be something like
Code:
 cout << "First place winner is" <<name1 "with a finish time of" <<runtime1 "!" <<endl;
or it could be something like
Code:
 cout <<name1 "has placed" <<firstplace "with a finishing time of" <<runtime1 <<endl;
I've been reading ahead in my book about loops, and arrays are brought up in chapter six. And it looks like to me using arrays and loops to write this program would be easier but all I have is the IF Else IF statments from chapter four. I don't think I'm ever going to get caught up. Anyhow, thanks again for your help.
B00tleg is offline   Reply With Quote