As far as I unterstood your question:
enum xxxx{
y=2,
e=3,
r=5,
u=9
};
xxxx YY;
enum xxxx{
y=2,
e=3,
r=5,
u=9
};
xxxx YY;
To copy to clipboard, switch view to plain text mode
YY = xxxx::e;
switch (YY)
{
case xxxx::e:
{
// do something with e
break;
}
case xxxx::r:
{
// do something with r
break;
}
case xxxx::u:
{
// do something with u
break;
}
case xxxx::y:
{
// do something with y
break;
}
}
YY = xxxx::e;
switch (YY)
{
case xxxx::e:
{
// do something with e
break;
}
case xxxx::r:
{
// do something with r
break;
}
case xxxx::u:
{
// do something with u
break;
}
case xxxx::y:
{
// do something with y
break;
}
}
To copy to clipboard, switch view to plain text mode
Regards
Bookmarks