Two enums have some elements in common, why does this produce an error?

后端 未结 8 680
难免孤独
难免孤独 2021-01-01 09:17

I have two enums in my code:

enum Month {January, February, March, April, May, June, July,
        August, September, October, November, December};
enum Shor         


        
8条回答
  •  借酒劲吻你
    2021-01-01 09:52

    typedef enum {Jan, January, Feb, February, Mar, March, Apr, April, May, Jun, June, Jul, July,
        Aug, August, Sep, September, Oct, October, Nov, November, Dec, December} Month,ShortMonth;
    

    Merge them become one

提交回复
热议问题