#include <iostream>
using namespace std;
int main()
{
enum string{
x1,
x2,
x3=10,
x4,
x5,
} x;
cout <<"x1="<<x1<<endl<<"x2="<<x2<<endl<<"x4="<<x4<<endl<<"x5="<<x5<<endl<<"x="<<x;}
输出结果:x1=0
x2=1
x4=11
x5=12
x=0
--------------------------------
Process exited after 0.2861 seconds with return value 0
请按任意键继续. . .