ErrorLINE1CHAR1
Programmer
I need help turning the following into a 1 byte enum if possible, if its not could you please explain why not..
(
all original names have been omitted but the strings: _zz1, _zz2, _blank, none = 0xFF
)
I have already completed my program, BUT i can add a whole new section to it if i can get this into a 1 byte enum...
I'm confused with how to do enum's i read a tutorial but I cant find any thing for my part where None = 0xFF (affraid that will throw a error, but i cant get this to where I need so i cant test that..)
Do I need to:
#define Name1 0
#define Name2 1
... etc
and for the 'None' do:
#define None
[purple]int[/purple] [red]0xFF[/red] = None;
instead of 'None = 0xFF' inside the enum??
Will credit in source for your help!!
-DEVON
Devon
Intel Corp. (HF)
(
all original names have been omitted but the strings: _zz1, _zz2, _blank, none = 0xFF
)
I have already completed my program, BUT i can add a whole new section to it if i can get this into a 1 byte enum...
Code:
[purple]enum[/purple] CHARID [blue]{[/blue]
Name1,
Name2,
Name3,
Name4,
Name5,
Name6,
Name7,
Name8,
Name9,
_zz1,
_zz2,
_blank,
Name10,
Name11,
Name12,
Name13,
None = 0xFF
};
I'm confused with how to do enum's i read a tutorial but I cant find any thing for my part where None = 0xFF (affraid that will throw a error, but i cant get this to where I need so i cant test that..)
Do I need to:
#define Name1 0
#define Name2 1
... etc
and for the 'None' do:
#define None
[purple]int[/purple] [red]0xFF[/red] = None;
instead of 'None = 0xFF' inside the enum??
Will credit in source for your help!!
-DEVON
Devon
Intel Corp. (HF)