#include /* beende das Initialisieren der Flags */ const short FLAG_ON = 1 << 0; // 1 (0x01) const short FLAG_MOVEMENT = 1 << 1; // 2 (0x02) const short FLAG_TRANSPARENT = 1 << 2; // 4 (0x04) const short FLAG_ALIVE = ; const short FLAG_BROKEN = ; const short FLAG_EDIBLE = 1 << 5; // 32 (0x20) int main() { short attributes = 0; /* setze die Attribute ON, TRANSPARENT, und BROKEN */ assert(attributes == FLAG_ON | FLAG_TRANSPARENT | FLAG_BROKEN); /* verandere (set/clear/toggle) sodass die einzigen Attribute ON und ALIVE sind */ assert(attributes == FLAG_ON | FLAG_ALIVE); /* checke, ob das ALIVE flag gesetzt ist */ assert(/* ??? */); /* checke, ob das BROKEN flag nicht gesetzt ist */ assert(/* ??? */); /* verändere so, dass nur das EDIBLE Attribut gesetzt ist */ assert(attributes == FLAG_EDIBLE); }