add Array for Tasche
authorratten <ratten@buecherratten.in-berlin.de>
Sat, 10 May 2025 17:19:48 +0000 (19:19 +0200)
committerratten <ratten@buecherratten.in-berlin.de>
Sat, 10 May 2025 17:19:48 +0000 (19:19 +0200)
hello.c

diff --git a/hello.c b/hello.c
index 80018282d2acdb141c1b964774c46a593ef26be2..6c5500de9d69324cf20c9c532934d4307583ea07 100644 (file)
--- a/hello.c
+++ b/hello.c
@@ -10,6 +10,25 @@ void Start()
   printf("%s", starttext);
 }
 
+char Fundsachen(void)
+{
+  char* Tasche[3];
+  char Kompass[] = "Kompass";
+  char Pflaster[] = "Pflaster";
+  char Feuerzeug[] = "Feuerzeug";
+  int i;
+
+  Tasche[0] = Kompass;
+  Tasche[1] = Pflaster;
+  Tasche[2] = Feuerzeug;
+
+  for (i=0 ;i<3;i++)
+  {
+    printf("%s",Tasche[i]);
+  }
+}
+
+
 char WegGablungKompass(void)
 {
   char Entscheidung;
@@ -60,7 +79,7 @@ int Monster(int Schwert)
 void normalerWeg()
 {
   printf("Du läufst entspannt den Weg entlang bis zu einer Kreuzung");
-  Kreuzung()
+  // Kreuzung();
 }
 
 int main(int argc, char *argv[])
@@ -70,6 +89,8 @@ int main(int argc, char *argv[])
   
   printf("%s", title);
 
+  Fundsachen();
+
   Start();
   Richtung = WegGablungKompass();