Enum

Started by
1 comment, last by Nazrix 22 years, 9 months ago
How are enum''s supposed to be used? As of now, I am using them like I would a define as in different enum''s have the same values. enum whatever { one, two, three, }; I guess I am not sure where the enum name (in this case the whatever part) comes in.
...A CRPG in development...
Need help? Well, go FAQ yourself.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
Advertisement
I''m not sure if this will answer your question, but enums are use in quite same way as structs...

enum ENU {BLAA,BLAABLAA}; or typedef enum ENU {BLAA,BLAABLAA}ENU;
enum ENU enu; or ENU enu;
enu = BLAABLAA; or enu = 1 (or 2 if it begins from 1 instead of 0);
ect...

Basic stuff...
------------------------------If there be no heaven,may there atleast be a hell.-------------------------------Afterlife-
oh okay, I see...thanks



...A CRPG in development...

Need help? Well, go FAQ yourself.
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi

This topic is closed to new replies.

Advertisement