ENUM in Chinese translation

枚举
enumeration
enums
enum
enumerated

Examples of using Enum in English and their translations into Chinese

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Here, Enum creates a fixed set of instances rather than class attributes.
这里Enum创建了一个固定的实例集,而不是类属性。
The enum hack behaves in some ways more like a define than a const does, and sometimes that's what you want.
Enumhack的行为某方面说比较像define而不像const,但有时这也是我们想要的。
Let's look at another example of an enum in Listing 6-2: this one has a wide variety of types embedded in its variants.
来看看示例6-2中的另一个枚举的例子:它的成员中内嵌了多种多样的类型:.
First, we will define and use an enum to show how an enum can encode meaning along with data.
首先,我们会定义并使用一个枚举来展示它是如何连同数据一起编码信息的。
Since the enum feature was added after JDK1.5, writing in this way is inevitably unfamiliar, and is rarely used in practical work.
由于JDK1.5之后才加入enum特性,用这种方式写不免让人感觉生疏,在实际工作中,也很少用。
The associated value of an enum member may not, directly or indirectly, use the value of its own associated enum member.
一个枚举成员的相关数值不管在直接或间接上,都不能使用它自己相关枚举成员的数值。
This enum is Option<T>, and it is defined by the standard library as follows.
个枚举是Option<T>,而且它定义于标准库中,如下.
The example enum Circular{ A= B B} is invalid because the declarations of A and B are circular.
例子enumCircular{A=BB}是无效的,因为A和B的声明是循环的。
The first name in an enum has value 0, the next 1, and so on, unless explicit values are specified.
在这个enum中第一个名字其值为0,而下一个为1,以此类推,除非其值另外指定了。
First, the enum hack behaves in some ways more like a define than a const does, and sometimes that's what you want.
首先,enum黑客的行为更像一个define而不是const,在某些情况下这更符合你的要求。
In fact, the enum hack is a fundamental technique of template metaprogramming(see Item 48).
实际上,theenumhack是templatemetaprogramming(模板元编程)的一项基本技术(参见Item48)。
In which case Enum. GetNames() seems to be the right approach.
在这种情况下Enum.GetNames()似乎是正确的方法。
The only safety that C++03 provides is that an integer or a value of one enum type does not convert implicitly to another enum type.
C++03唯一提供的安全机制是一个整数或一个枚举型值不能隐式转换到另一个枚举别型。
Next, we will explore a particularly useful enum, called Option, which expresses that a value can be either something or nothing.
接下来,我们会探索一个特别有用的枚举,叫做Option,它代表一个值要么是某个值要么什么都不是。
The TypeScript transpiler(just like Babel) has features that require generating extra code(inheritance, enum, generics, async/await, etc).
与Babel一样,TypeScript的转译器的一些功能也会生成额外的代码(继承、enum、generics和async/await等)。
Enhanced enums, to improve expressiveness of the enum construct by allowing type variables in enums and performing sharper type-checking for enum constants;
增强枚举,通过在枚举中允许类型变量和对枚举常量执行更为清晰的类型检查来提高enum构造的表现力;.
For example, Python has no enum block, but it does have an enum module.
比如,Python没有enum块,但它确实有enummodule.
The type of coin in this example is the Coin enum that we defined in Listing 6-3.
例子中的coin的类型是示例6-3中定义Coin枚举
Another example is that a function declared as f(anyarray) returns anyenum will only accept arrays of enum types.
另一个例子是一个声明的函数myfunc(anyarray)returnsanyenum将只接受数组enum类型。
Examples of such constructs include case labels, goto case statements, enum member declarations, attributes, and other constant declarations.
这样的构造示例包括case标签、gotocase语句、enum成员声明、属性和其他的常量声明。
Results: 80, Time: 0.0501

Top dictionary queries

English - Chinese