This could be answered elsewhere, but I could not find a suitable answer.
I have this code:
enum enumWizardPage { WP_NONE = 0x00, WP_CMDID = 0x01, WP_LEAGUES = 0x02, WP_TEAMS = 0x04, WP_COMP = 0x08, WP_DIVISIONS = 0x10, WP_FORMULAS = 0x20, WP_FINISHED = 0x40, };
This is a legacy, and I have to change it by adding a few new values. The problem is that each value must be a unique bit, so they can be combined with a bitmap.
Values ββare set using the format # x ## hex, but I wonder if this can be kept to a maximum? What will be the effect, if any, if I change my code to
enum enumWizardPage { WP_NONE = 0x0000, WP_CMDID = 0x0001, WP_LEAGUES = 0x0002, WP_TEAMS = 0x0004, WP_COMP = 0x0008, WP_DIVISIONS = 0x0010, WP_FORMULAS = 0x0020, WP_FINISHED = 0x0040, };
c ++ enums types size hex
CodeFusionMobile Jul 13. '09 at 21:13 2009-07-13 21:13
source share