然后,清单6使用新定义的枚举作为一个成员变量的类型。
Then, Listing 6 USES the new enumeration as the type for the member variable.
用以前定义过的类型建立一个新的枚举(grade)之后,您就可以像使用其他成员变量一样使用它了。
By creating a new enumeration (grade) of the previously defined type, you can then use it like any other member variable.
翻译单元中只能有任何变量,函数,类类型,枚举类型或模板的唯一定义。
No translation unit shall contain more than one definition of any variable, function, class type, enumeration type or template.
该函数使用subprocess_info结构以及定义是否等待的枚举变量(在“Usermode - helper API内部”一节中有描述)。
This function takes your subprocess_info structure and an enumeration defining whether to wait (described in the internals section).
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
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.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
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.
应用推荐