enumeration of constants 常数的枚举法 ; [数] 常数枚举法
An enumerated type is one that has valid values limited to a set of constants. For instance, an enumeration may be defined for the colors of a stop light as follows.
枚举类型是一种有效取值仅限于一组常量的类型。
In the context of the IBM Cognos 8 SDK, an enumeration set can be considered as a list of read-only constants.
在IBM Cognos 8 sdk上下文中,枚举集可以被视为一组只读常量。
For example, you can declare an enumeration for a set of integer constants associated with the days of the week, and then use the names of the days rather than their integer values in your code.
例如,您可以宣告列举来当做一组与每周日期关联的整数常数,接著在程序码中使用日期的名称而不是它们的整数值。
应用推荐