#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++基础学习(一),常量的定义和使用
猜你喜欢
转载自blog.csdn.net/u012592062/article/details/80300334
今日推荐
周排行