From d439fd2ae3133b97a8b2a56d6ea70a179f105ef0 Mon Sep 17 00:00:00 2001 From: 3009594 Date: Wed, 11 Sep 2024 19:55:26 +0200 Subject: [PATCH] neu --- .gitignore | 1 + TE2/Struktur(struct)/Struktur(struct).cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a4430f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/TE2/ diff --git a/TE2/Struktur(struct)/Struktur(struct).cpp b/TE2/Struktur(struct)/Struktur(struct).cpp index 7137261..ebae8d7 100644 --- a/TE2/Struktur(struct)/Struktur(struct).cpp +++ b/TE2/Struktur(struct)/Struktur(struct).cpp @@ -16,6 +16,14 @@ struct Person { float groesse; }; +// erstelle eine method ,die Person Obejkt übernimmt: +void printPersonDaten(Person person){ + + cout<< "Name: " << person.name<