Thursday, September 9, 2010

Repeated Enum Values

You can repeat values in an enum. For example:
enum RGB
{
   StartValue,
   Red       = StartValue,
   Green     , 
   StopValue ,
   Blue      = StopValue,
   RgbCount
};

No comments:

Post a Comment