6
Answers

How to show the members of an enum

Agustin Ferrari

Agustin Ferrari

16y
3.2k
1

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)