From 8aaaad3476d4e9e35d2afef09e3506e40a49b4ae Mon Sep 17 00:00:00 2001 From: fdai7172 Date: Thu, 9 Feb 2023 00:00:08 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Kommentare=20in=20addScoreboard?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index f7ec31a..bb934fb 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -286,9 +286,11 @@ void addScoreboard() FILE* fp = fopen("ScoreBoard.txt", "a+"); char name[255]; + //Liest den eingegebenen Namen ein printf("Bitte gib deinen Namen ein:\n"); scanf("%s", name); + //Schreibt den Namen und die erreichten Punkte in die Textdatei fprintf(fp, "%s %d\n", name, scorePoints); fclose(fp); }