SS 2025
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include "highscore.h"
|
||||
#include "date.h"
|
||||
|
||||
Highscore createHighscore(Date date, int value){
|
||||
Highscore highscore = { .date = date, .value = value};
|
||||
return highscore;
|
||||
}
|
||||
|
||||
void printHighscore(Highscore highscore){
|
||||
if (firstYear){
|
||||
printf("Scores ab: %d\n", firstYear);
|
||||
}
|
||||
printDate(highscore.date);
|
||||
printf(": %d\n", highscore.value);
|
||||
}
|
||||
|
||||
#ifdef TEST_HIGHSCORE
|
||||
|
||||
int main(){
|
||||
|
||||
Highscore highscore = createHighscore(createDate(1997),16);
|
||||
printHighscore(highscore);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user