K
Kapil Khosla
Hi,
I have a code in which I have an enum like
enum ADDR
{
one = 0;
two = 1;
three = 2;
};
Later in code , I have a function that returns an ADDR type, which
returns an integer referring to the correct value but I want to print
out the name one,two or three.
How can I do that, my example has a lot of cases so dont want to use a
switch statement.
Thanks,
Kapil
I have a code in which I have an enum like
enum ADDR
{
one = 0;
two = 1;
three = 2;
};
Later in code , I have a function that returns an ADDR type, which
returns an integer referring to the correct value but I want to print
out the name one,two or three.
How can I do that, my example has a lot of cases so dont want to use a
switch statement.
Thanks,
Kapil