How to: Should I use #define, enum or const?
How to: Should I use #define, enum or const?
Should I use #define, enum or const?
In a C++ project Iâm working on, I have a flag kind of value which can have four values. Those four flags can be combined. Flags describe the records in database and can be:
new record
deleted record
modified record
existing record
Now, for each record I wish to keep this attribute, so I could use an enum:
enum { xNew, xDeleted, xModified, xExisting }
HoweveâŚ
View On WordPress















