在这里我使用了一个32位的整数常量作为标签值。
无类型的整数常量就是(unsigned)int类型的。
枚举提供了一种替代的方法,不但定义了整数常量集,而且还把它们聚集成组。
Enumerations provide an alternative method of not only defining but also grouping sets of integral constants.
表达式必须有整数类型并且只能包括整数常量,字符常量,以及定义了的运算符。
Expressions must have integral type and can include only integer constants, character constants, and the defined operator.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
请注意,配置字段的值是一些匹配Configuration类里特定的常量的整数。
Notice that the values from the Configuration fields are integers that are matched to specific constants from the Configuration class.
这是一个用常量2来乘以一个整数的小函数。
It is a simple function in Pascal with multiplies an integer with the constant 2.
这是一个用常量2来乘以一个整数的小函数。
It is a simple function in Pascal with multiplies an integer with the constant 2.
应用推荐