Enumeration constant syntax error 枚举常数语法错误 ; 枚举常量语法错
unqualified enumeration constant name required 这是编译器会显示错误
Enumeration e constant syntax error 枚举常数语法错误
Embedded statements are not allowed in constant expressions, such as the value of an enumeration constant, the width of a bit-field, or the initial value of a static variable.
在常量表达式,比如枚举型常量、位域的宽度或是静态变量的初始值,是不允许使用在这种声明中的。
It is needed when there should be a specific list of constant values to be used for the simple type defined by the enumeration.
当枚举定义的简单类型使用常数的特殊列表时,就会需要这种类型了。
应用推荐