旱由 发表于 6 天前

枚举和枚举的取值范围

1,枚举

1.1 基本使用

#include using namespace std;// 枚举对应的值为enum color {red, blue, green, yellow};int main(){    color c;    c = red;    cout
页: [1]
查看完整版本: 枚举和枚举的取值范围