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

枚举和枚举的取值范围

旱由 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

相关推荐

2025-10-10 00:38:46

举报

2025-11-30 01:13:26

举报

2025-12-5 06:39:59

举报

2025-12-11 21:54:18

举报

2026-1-15 23:34:52

举报

2026-2-4 11:05:12

举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册