enum使用

新建一个.h文件

typedef enum

{

  type1 = 1,

  type2 = 2

};

原文地址:https://www.cnblogs.com/xiangjune/p/5687617.html