From e544c72e9b68c339a9a5d6b4f889c70edea368ad Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 19:23:25 +0100 Subject: [PATCH] Die Inhalte der Datei werden widergegeben --- src/Paper-Bin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 382a231..43ebb75 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -191,6 +191,11 @@ void sortScoreboard() fclose(fp); printf(" Scoreboard:\n\n"); + for (int j = 0; j <= numberOfLines; j++) + { + printf("%d. %s %s %d\n", j + 1, (j < 10) ? " " : " ", playerlist[j].Name, playerlist[j].Points); + } + FILE* fp = fopen("ScoreBoard.txt", "w"); }