枚举类型定义

enum orientation:byte
{
north =1,
south =2,
east =3,
west=4
}

注意:声明在代码的主体之外

原文地址:https://www.cnblogs.com/judes/p/9042426.html