6
Reply

How to show the members of an enum

Agustin Ferrari

Agustin Ferrari

Mar 9 2009 7:45 PM
3k

I believed it would be easy but cannot solve this using Console output:

I have an enum of four constants. Every time I push key "T" one of them should be shown at the screen in their established sequence.

Should I use something like MyEnum(index) every time, being index an int going through 0, 1, 2, 3, 0, 1, and so on?

Really at lost


Answers (6)