旱由 发表于 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

侧胥咽 发表于 2025-10-10 00:38:46

分享、互助 让互联网精神温暖你我

村亢 发表于 2025-10-23 12:39:27

分享、互助 让互联网精神温暖你我

劳暄美 发表于 2025-11-30 01:13:26

感谢分享,学习下。

黎瑞芝 发表于 7 天前

谢谢分享,试用一下

歇凛尾 发表于 3 天前

感谢分享,下载保存了,貌似很强大
页: [1]
查看完整版本: 枚举和枚举的取值范围