|
@ -194,7 +194,9 @@ void sortScoreboard() |
|
|
for (int j = 0; j <= numberOfLines; j++) |
|
|
for (int j = 0; j <= numberOfLines; j++) |
|
|
{ |
|
|
{ |
|
|
printf("%d. %s %s %d\n", j + 1, (j < 10) ? " " : " ", playerlist[j].Name, playerlist[j].Points); |
|
|
printf("%d. %s %s %d\n", j + 1, (j < 10) ? " " : " ", playerlist[j].Name, playerlist[j].Points); |
|
|
} |
|
|
|
|
|
|
|
|
sleep(1000); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FILE* fp = fopen("ScoreBoard.txt", "w"); |
|
|
FILE* fp = fopen("ScoreBoard.txt", "w"); |
|
|
|
|
|
|
|
|