Log in

View Full Version : About the enumeration


shruthing
Nov 3, 2008, 07:53 AM
hi,
can I use the special characters in the enumeration datatype.I know I can use the underscore but I'm not sure whether I can use the /,*,^ somethiing like can anyone tell me.
if not why I can't use
enum x
{
year_x/2,
day_y/3
};
:rolleyes:

shruthing
Nov 3, 2008, 07:54 AM
hi,
can i use the special characters in the enumeration datatype.i know i can use the underscore but i'm not sure whether i can use the /,*,^ somethiing like can anyone tell me.
if not why i can't use
enum x
{
year_x/2,
day_y/3
};
:rolleyes:OK