Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int didswap = 1;
- while (didswap)
- {
- didswap = 0;
- for (int sort = 0; sort < PLAYERMAX ; sort++)
- {
- if (finaltimes[sort][0] > finaltimes[sort + 1][0])
- {
- temp = finaltimes[sort + 1][0];
- temp2 = finaltimes[sort + 1][1];
- finaltimes[sort + 1][0] = finaltimes[sort][0];
- finaltimes[sort + 1][1] = finaltimes[sort][1];
- finaltimes[sort][0] = temp;
- finaltimes[sort][1] = temp2;
- didswap = 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement