枚举成员
- 与 枚举成员 相关的网络例句 [注:此内容来源于网络,仅供参考]
-
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 宏在这个问题上对编译器使用最合适的解决方法。
- 推荐网络例句
-
However, as the name(read-only memory)implies, CD disks cannot be written onorchanged in any way.
然而,正如其名字所指出的那样,CD盘不能写,也不能用任何方式改变其内容。
-
Galvanizes steel pallet is mainly export which suits standard packing of European Union, the North America. galvanizes steel pallet is suitable to heavy rack. Pallet surface can design plate type, corrugated and the gap form, satisfies the different requirements.
镀锌钢托盘多用于出口,替代木托盘,免薰蒸,符合欧盟、北美各国对出口货物包装材料的法令要求;喷涂钢托盘适用于重载上货架之用,托盘表面根据需要制作成平板状、波纹状及间隔形式,满足不同的使用要求。
-
A single payment file can be uploaded from an ERP system to effect all pan-China RMB payments and overseas payments in all currencies.
付款指令文件可从您的 ERP 系统上传到我们的电子银行系统来只是国内及对海外各种币种付款。