道家人 发表于 2024-7-3 10:33:12

枚举和枚举的取值范围

1,枚举

1.1 基本使用

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