hi everyone!
what is wrong with this declaration?:
i can not assign values to variables of this type.Code:enum tKoerperart { einfach, komplex };
enum tGeometrie { wuerfel, kugel, zylinder, kegel, tetraeder };
...
typedef struct koerper{
enum tKoerperart art;
enum tGeometrie typ;
...
}tKoerper;
typedef tKoerper *pKoerper;
what am i doing wrong here?Code:tObjekt objekt;
...
objekt.koerper->art=einfach;
objekt.koerper->typ=kugel;
...
greets, and by the way:"merry x-mass"