找回密码
 立即注册
首页 资源区 代码 枚举和枚举的取值范围

枚举和枚举的取值范围

旱由 2025-6-4 16:49:28
1,枚举

1.1 基本使用

[code]#include using namespace std;// 枚举对应的值为[0,1,2,3]enum color {red, blue, green, yellow};int main(){    color c;    c = red;    cout
您需要登录后才可以回帖 登录 | 立即注册