词义:’enum’是一个缩写词,表示“enumeration”,意为“枚举”。在计算机编程中,枚举是一种数据类型,用于定义一些有限的、固定的取值范围,比如星期、颜色等。
词性:名词,缩写词。
词组搭配:
- enum type:枚举类型
- enum constant:枚举常量
- enumerate:列举,枚举
- enumerated type:枚举类型
短语:无
发音拼写:[?i?n?m]
例句:
1. In this program, we use an enum to define the days of the week.
在这个程序中,我们使用枚举来定义星期几。
2. The enum constant RED is defined as the first element of the Color enum type.
枚举常量RED被定义为Color枚举类型的第一个元素。
3. We need to enumerate all possible values before we can decide which one to choose.
我们需要枚举所有可能的取值,才能决定选择哪个。
4. The parameter of the function should be an enumerated type.
这个函数的参数应该是一个枚举类型。
5. The enums in Java are powerful and flexible for defining a fixed set of values.
Java中的枚举是定义固定值集合的有效而灵活的方式。
6. The enum can be used to simplify the conditional expression in the code.
枚举可以用来简化代码中的条件表达式。
7. The enum has helped us to manage the list of available options in the program.
枚举帮助我们管理程序中可用选项的列表。
中文翻译:枚举类型
读音:[??n?m]
例句:
1. 我们可以使用枚举类型来定义一些状态变量。
(We can use an enum type to define some state variables.)
2. 在这个函数中,我使用了一个枚举类型来表示不同的颜色。
(In this function, I use an enum type to represent different colors.)
enum在英语中代表”列举型别、电话号码映射”的意思,还有枚举的意思,单词读音音标为[enum],enum常被用作名词,在《瓦里希英汉词典》中,共找到88个与enum相关的例句。
1.列举型别
例句:Just as with any constant, all references to the individual values of an enum are converted to numeric literals at compile time. (与任何常量一样,对枚举中各个值的所有引用在编译时均将转换为数值文本。)
2.电话号码映射
例句:Creating EAz using Enums and EnumSets in lieu of custom bit vectors turned out to be quite straightforward. (事实证明,使用Enum和EnumSet代替自定义位向量来创建EAz非常简单。)
3.枚举
例句:It returns one of the FileVisitResult’s enum values to tell the file visitor API what to do next. (它返回一个FileVisitResult枚举值,来告诉文件访问程序API下一步做什么。)
4.列举、枚举
例句:Being able to run through the values of an enum is nice, but even more important is the ability to make decisions based on an enum’s values. (翻译:能够在枚举的值之间移动很好,但是更重要的是根据枚举的值进行决策。)
1. It returns one of the FileVisitResult’s enum values to tell the file visitor API what to do next. (翻译:它返回一个FileVisitResult枚举值,来告诉文件访问程序API下一步做什么。)
2. Being able to run through the values of an enum is nice, but even more important is the ability to make decisions based on an enum’s values. (翻译:能够在枚举的值之间移动很好,但是更重要的是根据枚举的值进行决策。)
3. Type, structure, union, and enum definitions. (翻译:_ 类型、结构、联合体和枚举定义。)
4. A Java enum is an arbitrary set of values that are stored in a specific order. (翻译:Javaenum是按照特定顺序保存的随意的值集合。)