AN ENUM 中文是什么意思 - 中文翻译

enum
一个枚举

在 英语 中使用 An enum 的示例及其翻译为 中文

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
How can you enumerate an enum in C?
你怎么能enum在C中枚举??
An enum is a type that the developer can define.
枚举是开发者可以定义的一个类型。
This is because when defining an enum….
当我们声明一个enum….
Listing 7-12: Designating an enum as public makes all its variants public.
示例7-12:将枚举设计为公有会使其所有成员公有.
Here's how our Elvis example looks as an enum:.
以下是我们的Elvis示例如何看作枚举:.
The possible values of an enum type are usually referred to as enum constants.
枚举类型的可能值通常被称为枚举常量。
For example, Python has no enum block,but it does have an enum module:.
比如,Python没有enum块,但它确实有enummodule:.
The size of an ENUM object is determined by the number of different enumeration values.
一个ENUM对象的大小由不同枚举值的数量决定。
Another tier, such as ARCHIVE,can be added using an enum called StorageType.
另一层中,比如归档(ARCHIVE)层,可以使用名为StorageType的枚举来添加。
The first is a type tag- an enum- that identifies what data type is being stored.
第一部分是类型标识--一个存储了数据的类型的enum
Item 3: Enforce the singleton property with a private constructor or an enum type.
第3条:用私有构造器或者枚举类型强化Singleton属性.
DO NOT use an enum for open setssuch as the operating system version, names of your friends.
不要把枚举用于开放的集合(如操作系统版本、朋友名字这类).
An extra comma is permitted at the end of an enum list but a remark is issued.
允许在enum列表末尾附加一个逗号,但会发出备注消息。
Technically, an enum is considered to be a special kind of class, but that is not important for now.
从技术上讲,枚举被认为是一种特殊的类,但这并不重要。
By blocking all single digit labels, the root of an ENUM tree cannot be placed directly in. tel.
通过阻止所有单位数字标签,ENUM树的根不能直接放置在.tel中。
An enum always has an underlying type, which may be any of the integral types, except for char.
每种枚举类型都有基础类型,该类型可以是除char以外的任何整型。
First, we will define and use an enum to show how an enum can encode meaning along with data.
首先,我们会定义并使用一个枚举来展示它是如何连同数据一起编码信息的。
CONSIDER using Int32(the default in most programming languages)as the underlying type of an enum unless any of the following is true:.
考虑将System.Int32(大多数编程语言的默认数据类型)用作枚举的基础数据类型,除非出现以下任何一种情况:.
In Rust they can be an enum(Rust's keyword for a"tagged union" or"sum type"):.
在Rust中,它们可以是枚举(在Rust中用于“标记联合”或“求和类型”,关键字为enum):.
If an ENUM column is declared NOT NULL, its default value is the first element of the list of allowed values.
如果ENUM列被声明为NOTNULL,其默认值为允许的值列表的第1个元素。
Listing 15-2: The first attempt at defining an enum to represent a cons list data structure of i32 values.
示例15-2:第一次尝试定义一个代表i32值的conslist数据结构的枚举.
An enum type, provided it has public accessibility and the types in which it is nested(if any) also have public accessibility(§17.2).
枚举类型,前提是该枚举类型具有public可访问性,而且所有嵌套着它的类型(如果有)也必须具有public可访问性(第17.2节)。
For example, here is the denition of an enum type named Season whose values are the names of the four seasons of the year:.
例如,下面是一个名为Season的枚举类型的定义,其值是一年中四个季节的名称:.
Using an enum plus a match expression means that Rust will ensure at compile time that every possible case is handled, as discussed in Chapter 6.
使用枚举外加match意味着Rust能在编译时就保证总是会处理所有可能的情况,正如第六章讲到的那样。
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中的另一个枚举的例子:它的成员中内嵌了多种多样的类型:.
If a field has an enum type, the parser will recognize symbolic enum values(with or without quotes) instead of numbers, e.g. field: EnumVal.
如果一个字段具有枚举类型,解析器会将枚举识别符号枚举值(带或不带引号)而不是数字,例如field:EnumVal。
The first name in an enum has value 0, the next 1, and so on, unless explicit values are specified.
个enum中第一个名字其值为0,而下一个为1,以此类推,除非其值另外指定了。
The associated value of an enum member may not, directly or indirectly, use the value of its own associated enum member.
一个枚举成员的相关数值不管在直接或间接上,都不能使用它自己相关枚举成员的数值。
For some text fields, such as"province" or"sex",we can define them as a ENUM type.
对于某些文本字段,例如“省份”或者“性别”,我们可以将它们定义为ENUM类型。
结果: 29, 时间: 0.0332

单词翻译

顶级字典查询

英语 - 中文