|
@ -111,6 +111,7 @@ void Generatefield() { |
|
|
|
|
|
|
|
|
void addScoreboard() |
|
|
void addScoreboard() |
|
|
{ |
|
|
{ |
|
|
|
|
|
int ScorePoints; |
|
|
//Die txt wird geöffnet |
|
|
//Die txt wird geöffnet |
|
|
FILE* fp = fopen("ScoreBoard.txt", "a+"); |
|
|
FILE* fp = fopen("ScoreBoard.txt", "a+"); |
|
|
char name[255]; |
|
|
char name[255]; |
|
@ -118,5 +119,7 @@ void addScoreboard() |
|
|
printf("Bitte gib deinen Namen ein:\n"); |
|
|
printf("Bitte gib deinen Namen ein:\n"); |
|
|
scanf("%s", name); |
|
|
scanf("%s", name); |
|
|
|
|
|
|
|
|
|
|
|
fprintf(fp, "%s %d\n", name, ScorePoints); |
|
|
|
|
|
fclose(fp); |
|
|
} |
|
|
} |
|
|
|
|
|
|