Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i=0; i<4; i++) {
- for (int j=0; j<4-i; j++)
- if (highscores[j+1] < highscores[j]) { /* compare the two neighbors */
- tempint = highscores[j]; /* swap a[j] and a[j+1] */
- tempstring = nomes[j];
- highscores[j] = highscores[j+1];
- nomes[j] = nomes[j+1];
- highscores[j+1] = tempint;
- nomes[j+1] = tempstring;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement