                              // Kapitel 2 - Programm 2 - STRUKT.CPP
#include <iostream.h>

struct Tier
{
   int Gewicht;
   int Beine;
};

int main()
{
Tier Hund1, Hund2, Henne;
Tier Katze1;
struct Tier Katze2;

   Hund1.Gewicht = 15;
   Hund2.Gewicht = 37;
   Henne.Gewicht = 3;

   Hund1.Beine = 4;
   Hund2.Beine = 4;
   Henne.Beine = 2;

   cout << "Das Gewicht von Hund1 ist " << Hund1.Gewicht << "\n";
   cout << "Das Gewicht von Hund2 ist " << Hund2.Gewicht << "\n";
   cout << "Das Gewicht von Henne ist " << Henne.Gewicht << "\n";

   return 0;
}


// Ergebnis beim Ausführen
//
// Das Gewicht von Hund1 ist 15
// Das Gewicht von Hund2 ist 37
// Das Gewicht von Henne ist 3
