From df717a0f196b11929ca89f7b395981b6affbf4a0 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Tue, 30 Jan 2024 09:21:44 +0100 Subject: [PATCH] Auswahl mit switch case realisiert --- src/main/c/Jason/ASCII_art.c | 15 +++++++++++++++ src/main/c/Jason/ASCII_art.h | 1 + 2 files changed, 16 insertions(+) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index 191c3ef..babbf1a 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -6,6 +6,7 @@ int ASCII_Art(){ printWelcomeMessage(); int auswahl; scanf("%d", &auswahl); + auswahlDerArt(auswahl); return 0; @@ -17,4 +18,18 @@ int printWelcomeMessage(){ printf("(1) Quadrat\n"); return 0; +} + +void auswahlDerArt(int pick){ + switch (pick) { + case (1): + + break; + case (2): + + break; + + default: + break; + } } \ No newline at end of file diff --git a/src/main/c/Jason/ASCII_art.h b/src/main/c/Jason/ASCII_art.h index e7163cc..c306f98 100644 --- a/src/main/c/Jason/ASCII_art.h +++ b/src/main/c/Jason/ASCII_art.h @@ -3,6 +3,7 @@ int ASCII_Art(); int printWelcomeMessage(); +void auswahlDerArt(int);