do while angepasst

bugfix
Jan Wild 2024-12-14 22:31:49 +01:00
parent 8cea008459
commit 81a0d68cc2
No known key found for this signature in database
GPG Key ID: 0BCB2E053F2192BB
1 changed files with 3 additions and 5 deletions

View File

@ -9,7 +9,6 @@
#include <stdlib.h> #include <stdlib.h>
#include "ui.h" #include "ui.h"
#include <assert.h> #include <assert.h>
#include "db.h"
#include "llist.h" #include "llist.h"
@ -36,8 +35,7 @@ int main(void)
int choice = 0, i = 0; int choice = 0, i = 0;
do do {
{
printf(" -1- Neues Fach eingeben\n"); printf(" -1- Neues Fach eingeben\n");
printf(" -2- Verfuegbare Zeit eingeben\n"); printf(" -2- Verfuegbare Zeit eingeben\n");
printf(" -3- Alle vorhandenen Faecher aufliesten\n"); printf(" -3- Alle vorhandenen Faecher aufliesten\n");
@ -47,8 +45,8 @@ int main(void)
if( scanf("%d", &choice) != 1){ if( scanf("%d", &choice) != 1){
printf("Falsche Eingabe\n");}; printf("Falsche Eingabe\n");};
choice = 0; choice = 0;
}while(( choice < 1 || choice > 5));
while(( choice < 1 || choice > 5)){ {
switch (choice) switch (choice)
{ {
case 1: case 1: