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.
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...
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...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement