G
Georg J. Stach
Hello,
taken I've declared an enumeration like this:
enum Color{ red,green,blue };
The internal representation of Color is of type integer and it's no problem
to print out their values.
But is it possible to get their string representing value _without_ having a
switch like this?
switch (Color) {
case (red):
string str("red");
.
.
.
}
Thanks for replies
Georg
taken I've declared an enumeration like this:
enum Color{ red,green,blue };
The internal representation of Color is of type integer and it's no problem
to print out their values.
But is it possible to get their string representing value _without_ having a
switch like this?
switch (Color) {
case (red):
string str("red");
.
.
.
}
Thanks for replies
Georg