Offending me is impossible. You mis-interpreted my post.
The code will be straight forward and ugly. However, if I am restricted to your current tools, I couldn't do better myself. So my advise is to do it straight forward.
Make a bunch of variables:
3 names (use getline() to combine first name and sur name during input of names).
9 time variables (unsigned, 3 per contestant).
3 ranking variables (1 rank per contestant).
Then fiddle with it:
Code:
TotalTimeFirstPlayer = FirstPlayerHours *3600 + FirstPlayerMinutes * 60 + FirstPlayerSeconds;
if(TotalTimeFirstPlayer < TotalTimeSecondPlayer && TotalTimeFirstPlayer < TotalTimeThirdPlayer)
cout<<FirstPlayer<<" wins!<<endl;
... etcetera...
What else could you (or I) do?
You *could* fiddle with
enum as well:
Code:
enum ranks {FIRST, SECOND, THIRD};
But don't expect anything from it right now.