This commit is contained in:
2024-11-28 11:27:09 +01:00
parent d6f5f0cac9
commit aa2ff99dcf
53 changed files with 4366 additions and 27 deletions
@@ -0,0 +1,12 @@
#include <stdio.h>
#include "date.h"
#include "highscore.h"
void setHighscore(Highscore *highscore, int score, int year){
setDate(&highscore->date, year);
highscore->score = score;
}
void prettyPrintHighscore(Highscore *highscore){
printf("The Highscore on the %d.%d.%d is %d \n", highscore->date.day,highscore->date.month,highscore->date.year,highscore->score);
}