程序园's Archiver
社区
›
代码
› 枚举和枚举的取值范围
旱由
发表于 2025-6-4 16:49:28
枚举和枚举的取值范围
1,枚举
1.1 基本使用
#include using namespace std;// 枚举对应的值为enum color {red, blue, green, yellow};int main(){ color c; c = red; cout
侧胥咽
发表于
3 天前
分享、互助 让互联网精神温暖你我
页:
[1]
查看完整版本:
枚举和枚举的取值范围