Say I have the enum {ONE,TWO,THREE}
is there a way to assign ONE = 1, TWO = 2, ...
so that later I can do something along the lines of:
if ONE < TWO, do something?
Thanks.
Printable View
Say I have the enum {ONE,TWO,THREE}
is there a way to assign ONE = 1, TWO = 2, ...
so that later I can do something along the lines of:
if ONE < TWO, do something?
Thanks.
Look at the methods in the Enum class. One of those will probably help you.
Perfect, thanks.