c++

#include <iostream>//枚举
using namespace std;

int main()
{
enum Key{KEY_S1,KEY_S2,KEY_S3}a,b,c;
a = KEY_S1;
b = KEY_S2;
c = KEY_S3;
cout << a << "," << b << "," << c << endl;
system("Pause");
return 0;
}

原文地址:https://www.cnblogs.com/Blue-Moniter4/p/9078630.html