From 81a0d68cc20ca96f9fb12925f5d70cd199c99e69 Mon Sep 17 00:00:00 2001 From: wildjan Date: Sat, 14 Dec 2024 22:31:49 +0100 Subject: [PATCH] do while angepasst --- src/ui.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ui.c b/src/ui.c index b2bab4d..d26db47 100644 --- a/src/ui.c +++ b/src/ui.c @@ -9,7 +9,6 @@ #include #include "ui.h" #include -#include "db.h" #include "llist.h" @@ -36,8 +35,7 @@ int main(void) int choice = 0, i = 0; - do - { + do { printf(" -1- Neues Fach eingeben\n"); printf(" -2- Verfuegbare Zeit eingeben\n"); printf(" -3- Alle vorhandenen Faecher aufliesten\n"); @@ -47,8 +45,8 @@ int main(void) if( scanf("%d", &choice) != 1){ printf("Falsche Eingabe\n");}; choice = 0; - - while(( choice < 1 || choice > 5)){ + }while(( choice < 1 || choice > 5)); + { switch (choice) { case 1: