From d751105282c18c2f6fc34d3228ca110ee532c554 Mon Sep 17 00:00:00 2001 From: Jason Peters Date: Thu, 1 Feb 2024 13:50:36 +0100 Subject: [PATCH] =?UTF-8?q?Wert=20einlesen=20und=20Funktion=20f=C3=BCr=20B?= =?UTF-8?q?reite=20berechnen=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Jason/ASCII_art.c | 8 ++++++++ src/main/c/Jason/ASCII_art.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/main/c/Jason/ASCII_art.c b/src/main/c/Jason/ASCII_art.c index 209700c..220db78 100644 --- a/src/main/c/Jason/ASCII_art.c +++ b/src/main/c/Jason/ASCII_art.c @@ -30,6 +30,9 @@ void quadrat(){ void weihnachtsbaum(){ abfrageDerHoehe(); + int hoehe; + scanf("%d", &hoehe); + max_breite(hoehe); } @@ -109,3 +112,8 @@ int abfrageDerHoehe(){ return 0; } + +int max_breite(int zeilen){ + + 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 4d4808d..90cfcab 100644 --- a/src/main/c/Jason/ASCII_art.h +++ b/src/main/c/Jason/ASCII_art.h @@ -12,6 +12,7 @@ void befuelleArrayMitLeerzeichen(char[],int); void befuelleArrayMitZeilenumbruechen(char[],int); void weihnachtsbaum(); int abfrageDerHoehe(); +int max_breite(int); #endif