#include <iostream>
using namespace std;
//表示方位的枚举常量
enum CardinalDirections
{
North = 12,
South,//13
East,//14
West//15
};
//枚举常量测试
int main()
{
CardinalDirections direct = East;
cout<<"direct : "<<direct<<endl; //14
system("pause");
return 0;
}
C++基础学习(一),常量的定义和使用
最新推荐文章于 2023-08-11 08:00:00 发布