From: Susanne Date: Sun, 29 Jun 2025 14:15:05 +0000 (+0200) Subject: with error X-Git-Url: http://git.tuxteam.de/gitweb/?a=commitdiff_plain;h=36b31d7f3fe3a032cb28a3c24fc5c8be68c8218b;p=susannes-git%2Fc-zeug%2Fstarting-c.git with error --- diff --git a/hello.c b/hello.c index fa09c7f..ed1edf1 100644 --- a/hello.c +++ b/hello.c @@ -2,10 +2,13 @@ #include #include #include +#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 index 0000000..252ca3e Binary files /dev/null and b/intarray-run differ diff --git a/lebewesen.h b/lebewesen.h new file mode 100644 index 0000000..49b5302 --- /dev/null +++ b/lebewesen.h @@ -0,0 +1,5 @@ +struct Lebewesen +{ + int Lebenspunkte; +}; +