Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(scoresAmount == 15){
- int index=15;
- int lowScore = score;
- int i;
- for(i=0; i<15; i++){
- if(scoresArray[i] < lowScore){
- lowScore=scoresArray[i];
- index=i;
- }
- }
- if(index !=15){
- scoresArray[index] = score;
- names[index] = input;
- }
- }
- else{
- scoresArray[scoresAmount] = score;
- names[scoresAmount] = input;
- scoresAmount++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement