在一般逻辑教科书中,把“以偏概全”作为一种逻辑错误,并指出在运用简单枚举法时应注意避免。
In common logic textbooks, "taking a part for the whole" is considered as a logic error, so we are warned against such errors when using simple enumeration method.
使用枚举类型的基本概念很简单。
枚举是简单类型的特殊类型。
假设您希望支持清单10 所示的简单语法,该语法部分解析C/C++枚举。
Suppose you want to try to support the simple grammar shown in Listing 10, which partially parses C/C++ enumerations.
简单类型包括字符串、浮点数、整数、枚举等。
Simple types include string, float, integer, enumeration, etc.
当枚举定义的简单类型使用常数的特殊列表时,就会需要这种类型了。
It is needed when there should be a specific list of constant values to be used for the simple type defined by the enumeration.
GraphViz使用一种简单的脚本格式来定义一些图表,这些图表将作为您的Twitter用户枚举的一部分。
GraphViz USES a simple script format to define graphs, which you'll emit as part of your enumeration of the Twitter users.
为代码添加枚举功能非常简单,只需在一个打开的记录存储上创建一个RecordEnumeration对象并遍历所有记录即可。
Incorporating enumeration into your code is as easy as creating a RecordEnumeration object from an open record store and looping through each record.
使用一个简单的BOM - to - XOM映射提供枚举值(图9)。
Provide the enumeration value with a simple BOM-to-XOM mapping (Figure 9).
其数据结构要比传统shell更加强大,它的语法简单易懂,其底层虚拟引擎支持从枚举类型到线程等所有内容。
Its data structures are more capable than a traditional shell, it's syntax is familiar, and its underlying virtual engine supports everything from enumerated types to threads.
迄今为止,您所看到的示例都相当简单,但是枚举类型提供的东西远不止这些。
The examples you've seen so far have been rather simple, but enumerated types offer much more.
这就是枚举类型的简单性。
实际上,Scala的枚举类支持和集合协作需要的一般方法,所以我们可以简单地在循环中遍历这些种类,或者通过名字过滤它们。
In fact, Scala's Enumeration class supports the usual methods for working with collections, so we can easily iterate through the breeds with a for loop and filter them by name.
这是Scala中的一个常见的特色,它可以提供更简单、更类型安全的枚举方式。
This is a common idiom in Scala to provide a simpler, more type-safe way of doing enumerations.
基于预期的元素和属性以及枚举的简单类型值的智能提示(intellisense)。
Intellisense based on expected elements and attributes and enumerated simple type values.
而且,枚举值是通过其Class对象提供的,同时提供的还有映射值的类型(在该例中,它只是一个简单的字符串)。
Also, an enumerated type is supplied via its Class object, along with the type of the Map's values (in this case, simple strings). The output of this method is shown in Listing 11.
本文提出用0 - 1整数规划的隐枚举法,求解网络的多中心问题,算法简单,容易实现。
In this paper, the problem of multi-centres in a network is solved using implicit enumeration method for 0-1 integer programming. The algorithm is simple and can be easily realized.
采用枚举搜索法具有方法简单、编程容易的优点,但计算量非常大、搜索效率非常低。
Enumerating-search method is easy to program, but the searching efficiency is very low because of vast calculating amount.
采用枚举搜索法具有方法简单、编程容易的优点,但计算量非常大、搜索效率非常低。
Enumerating-search method is easy to program, but the searching efficiency is very low because of vast calculating amount.
应用推荐