KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have two enums in my code: enum Month {January, February, March, April, May, June, July, August, September, October, November, December}; enum ShortMonth {Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec}; May is a common element in both enums, so the compiler says: Redeclaration of enumerator ' May ' . Why does it say so? And how can I circumvent this?
Tags (comma-separated)
Save Edits
Cancel