From 8965a5c8b549b0d5ac38ab3cd5ac44a66f0f1b96 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Tue, 30 Jan 2024 08:45:54 +0100 Subject: [PATCH] Wilkommensnachricht und Auswahl eingebaut --- src/main/c/Jason/ASCII_art.c | 12 ++++++++++++ src/main/c/Jason/ASCII_art.h | 1 + src/test/c/Jason/test_ASCII_art.c | 1 + 3 files changed, 14 insertions(+) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index 1a09f0f..191c3ef 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -3,6 +3,18 @@ int ASCII_Art(){ + printWelcomeMessage(); + int auswahl; + scanf("%d", &auswahl); + return 0; +} + +int printWelcomeMessage(){ + printf("Willkommen bei ASCII-Art!\n"); + printf("Wählen Sie aus welche ASCII-Art Sie sehen wollen!\n"); + printf("(1) Quadrat\n"); + +return 0; } \ 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 f726a3f..e7163cc 100644 --- a/src/main/c/Jason/ASCII_art.h +++ b/src/main/c/Jason/ASCII_art.h @@ -2,6 +2,7 @@ #define ASCII_ART_H int ASCII_Art(); +int printWelcomeMessage(); diff --git a/src/test/c/Jason/test_ASCII_art.c b/src/test/c/Jason/test_ASCII_art.c index f435a6b..07b8516 100644 --- a/src/test/c/Jason/test_ASCII_art.c +++ b/src/test/c/Jason/test_ASCII_art.c @@ -8,3 +8,4 @@ void setup (void){ void tearDown(void){ } +