例如,枚举成员的初始化式必须是常量表达式。
For example, the initializer of an enumerator must be a constant expression.
请注意,默认情况下,如果声明中未设置第一个枚举成员的值,则其值为零。
Note that, by default, if the value of the first enumeration member is not set in the declaration, its value is zero.
枚举成员的名称不能以类型名称作为前缀,因为类型信息将由开发工具提供。
Names of enumeration members are not prefixed with the type name because type information is expected to be provided by development tools.
应用推荐