Advertisement
ijontichy

<stdin>

Jul 29th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. int didswap = 1;
  2.  
  3. while (didswap)
  4. {
  5. didswap = 0;
  6.  
  7. for (int sort = 0; sort < PLAYERMAX ; sort++)
  8. {
  9. if (finaltimes[sort][0] > finaltimes[sort + 1][0])
  10. {
  11. temp = finaltimes[sort + 1][0];
  12. temp2 = finaltimes[sort + 1][1];
  13. finaltimes[sort + 1][0] = finaltimes[sort][0];
  14. finaltimes[sort + 1][1] = finaltimes[sort][1];
  15. finaltimes[sort][0] = temp;
  16. finaltimes[sort][1] = temp2;
  17. didswap = 1;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement