C ordening

This commit is contained in:
Rens Pastoor
2025-05-27 23:26:28 +02:00
parent 39269a71a7
commit 517087ccc1
207 changed files with 0 additions and 4278 deletions

View File

@@ -0,0 +1,55 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Add your includes here:
#include "terminal_io.h"
int main(int argc, char* argv[])
{
MenuOptions choice = MO_SHOW_ICESKATERS;
printProgramHeader();
while (choice != MO_QUIT)
{
choice = getMenuChoice();
switch (choice)
{
case MO_SHOW_ICESKATERS:
fprintf(stderr, "not yet implemented\n");
break;
case MO_ADD_ICESKATER:
fprintf(stderr, "not yet implemented\n");
break;
case MO_REMOVE_ICESKATER:
fprintf(stderr, "not yet implemented\n");
break;
case MO_ADD_TIME:
fprintf(stderr, "not yet implemented\n");
break;
case MO_SHOW_CLASSIFICATION:
fprintf(stderr, "not yet implemented\n");
break;
case MO_SHOW_FINAL_CLASSIFICATION:
fprintf(stderr, "not yet implemented\n");
break;
case MO_LOAD:
fprintf(stderr, "not yet implemented\n");
break;
case MO_SAVE:
fprintf(stderr, "not yet implemented\n");
break;
case MO_QUIT:
// nothing to do here
break;
default:
fprintf(stderr, "ERROR: invalid choice: %d\n", choice);
break;
}
}
return 0;
}