with error
authorSusanne <ratten@buecherratten.in-berlin.de>
Sun, 29 Jun 2025 14:15:05 +0000 (16:15 +0200)
committerSusanne <ratten@buecherratten.in-berlin.de>
Sun, 29 Jun 2025 14:15:05 +0000 (16:15 +0200)
hello.c
intarray-run [new file with mode: 0755]
lebewesen.h [new file with mode: 0644]

diff --git a/hello.c b/hello.c
index fa09c7f67affc0b35f70956f72fb128c72ed754d..ed1edf1fe5b80db1d6b5c4058726a7c5ca5015f9 100644 (file)
--- a/hello.c
+++ b/hello.c
@@ -2,10 +2,13 @@
 #include <string.h>
 #include <stdlib.h>
 #include <time.h>
+#include "lebewesen.h"
 
 # define Taschenplatz 20 //Kommentar 
 
 char* Tasche[Taschenplatz];
+struct Lebewesen Kaempfer;
+Kaempfer.Lebenspunkte = 100;
 
 void addFundsache(char** Tasche, char* Ding)
 {
@@ -118,7 +121,7 @@ int main(int argc, char *argv[])
 {
   char title[] = "Mein kleiner Dungon\n";
   char Richtung;
-  
+  printf("%d", Kaempfer.Lebenspunkte)  
   printf("%s", title);
 
   char** Tasche = Fundsachen();
diff --git a/intarray-run b/intarray-run
new file mode 100755 (executable)
index 0000000..252ca3e
Binary files /dev/null and b/intarray-run differ
diff --git a/lebewesen.h b/lebewesen.h
new file mode 100644 (file)
index 0000000..49b5302
--- /dev/null
@@ -0,0 +1,5 @@
+struct Lebewesen
+{
+  int Lebenspunkte;
+};
+