quote:Original post by Magmai Kai Holmlor
Thanks, can't believe I didn't think of enum.
Now, if only there was a way to do it across tranlation units.
quote:include the header?
lol another advanced C++ feature.
Seriously, what do you mean by "doing it across translation units"? If you #include the header, it's going to be in every TU...
If you're thinking about multiple enums having different values, I think you can do this:
enum {A, B, C, D};
enum {E = D + 1, F, G, H};
Cédric
[edited by - cedricl on August 15, 2002 3:22:10 PM]