英语人>词典>汉英 : 枚举成员 的英文翻译,例句
枚举成员 的英文翻译、例句

枚举成员

基本解释 (translations)
enumerators

更多网络例句与枚举成员相关的网络例句 [注:此内容来源于网络,仅供参考]

It is not possible to change the value of an enumerator.

不能改变枚举成员的值。

For example, the initializer of an enumerator must be a constant expression.

例如,枚举成员的初始化式必须是常量表达式。

An enumerator value need not be unique.

枚举成员值可以是不唯一的。

Each subsequent enumerator is assigned a value one greater than the value of the enumerator that immediately precedes it.

默认地,第一个枚举成员赋值为 0,后面的每个枚举成员赋的值比前面的大 1。

An object of enumeration type may be initialized or assigned only by one of its enumerators or by another object of the same enumeration type

枚举类型的对象的初始化或赋值,只能通过其枚举成员或同一枚举类型的其他对象来进行

We may supply an initial value for one or more enumerators. The value used to initialize an enumerator must be a constant expression .

可以为一个或多个枚举成员提供初始值,用来初始化枚举成员的值必须是一个常量表达式。

Recall that an object of enum type may be initialized only by another object of that enum type or one of its enumerators Section 2.7, p.

回顾枚举类型 enum,我们知道这种类型的对象只能用同一枚举类型的另一个对象或一个枚举成员进行初始化(第 2.7 节)。

An enumeration is defined using the enum keyword, followed by an optional enumeration name, and a comma-separated list of enumerators enclosed in braces.

枚举的定义包括关键字 enum,其后是一个可选的枚举类型名,和一个用花括号括起来、用逗号分开的枚举成员列表。

There can be no static members of a local class. Local class members may not access the local variables defined in the enclosing function. They may use type names, static variables, or enumerators defined in the enclosing function.

局部类不能有静态成员,局部类成员不能访问外围函数中定义的局部变量,它们可以使用外围函数中定义的类型名、静态变量和枚举成员

Rationale: not all compilers support inline initialisation of member constants, others treat member enumerators in strange ways (they're not always treated as integral constant expressions). The BOOST_STATIC_CONSTANT macro uses the most appropriate method for the compiler in question.

理由:不是所有的编译器都支持成员常量的内联初始化,其它一些编译器对待枚举成员的方式很奇特(并不总是把它们看作常量表达式) BOOST_STATIC_CONSTANT 宏在这个问题上对编译器使用最合适的解决方法。

更多网络解释与枚举成员相关的网络解释 [注:此内容来源于网络,仅供参考]

enumerator:枚举成员

此时枚举(enumeration)提供了一种方法:它不但定义了整数常量集,而且还把它们聚集成组(体现特定的关联性). 枚举的定义包括关键字enum,其后是一个可选的枚举名称,和一个花括号括起来、用逗号分开的枚举成员(enumerator)列表.

enumerators:枚举成员、枚举器

dynamic snapshot 动态快照 (for database) | enumerators 枚举成员、枚举器 | equal 相等

enumerators:列举元(enum型别中的成员) 枚举成员、枚举器

enclosing class 外围类别(与巢状类别 nested class有关) 外围类 | enumerators 列举元(enum型别中的成员) 枚举成员、枚举器 | equal 相等 相等

enumerators:列举元(enum 型别中的成员) 枚举成员、枚

enclosing class 外围类别(与巢状类别 nested class 有关)外围类 | enumerators 列举元(enum 型别中的成员) 枚举成员、枚 | equal 相等 相等