From c87ea74b2bc54d6a06b681719d2f6973d27e7c0e Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Wed, 8 Feb 2023 18:21:51 +0100 Subject: [PATCH] Methode f. Erst. des Korbs angelegt /aufgerufen --- src/Paper-Bin.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 256e384..b1d45db 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -2,6 +2,16 @@ char field[23][29]; +void buildBin(int width, int heigth){ + field[width][heigth] = 'V'; + field[width+1][heigth+1] = '\\'; + field[width+2][heigth+2] = '\\'; + field[width-1][heigth+1] = '/'; + field[width-2][heigth+2] = '/'; + field[width][heigth+1] = ' '; +} + + int main() { while (1) @@ -16,6 +26,8 @@ int main() } } + buildBin(10,10); + for (int i = 0; i < 29; i++) { printf("|");