I am on the topic of user-defined types and I can't understand enumeration. The example in the book is confusing and doesnt make any sense to me. Could someone explain it any better?
The example I got was
enum Animal (CAT, DOG, RODENT);
I understand that Animal is the type and CAT, DOG, and RODENT are the literal constants. I just cant think of anywhere someone would use this.