Browse Source

refactoring: Variable für bessere Lesbarkeit umbenannt

main
fdai7172 2 years ago
parent
commit
9493981cfa
  1. BIN
      build/artifacts/release/Paper-Bin.out
  2. BIN
      build/release/Paper-Bin.out
  3. BIN
      build/release/out/c/Paper-Bin.o
  4. 8
      src/Paper-Bin.c

BIN
build/artifacts/release/Paper-Bin.out

BIN
build/release/Paper-Bin.out

BIN
build/release/out/c/Paper-Bin.o

8
src/Paper-Bin.c

@ -331,11 +331,11 @@ void sortScoreboard()
//Die Textdatei wird Zeile für Zeile eingelesen und in die Strukturliste eingefügt //Die Textdatei wird Zeile für Zeile eingelesen und in die Strukturliste eingefügt
for (int j = 0; fgets(line, sizeof line, file) != NULL && j <= 10; j++) for (int j = 0; fgets(line, sizeof line, file) != NULL && j <= 10; j++)
{ {
char* playertmp = strtok(line, " ");
strcpy(playerlist[j].Name, playertmp);
char* playerTmp = strtok(line, " ");
strcpy(playerlist[j].Name, playerTmp);
playertmp = strtok(NULL, " ");
int playerPoints = atoi(playertmp);
playerTmp = strtok(NULL, " ");
int playerPoints = atoi(playerTmp);
playerlist[j].Points = playerPoints; playerlist[j].Points = playerPoints;

Loading…
Cancel
Save