Addition of two signed ints results in a signed int.
两个有符号整数相加的结果是一个有符号的整数。
If we go back up to the kinds of data objects we started with, floats, ints, strings, they actually behave the same way.
如果我们回想一下我们一开始讲过的数据对象的种类,浮点数,整数,字符串,它们实际上有相同的行为方式。
Listing 1. Class hierarchy for binary trees of ints.
清单1. int二元树的类层次结构。
You can fill a matrix with random ints and complexes.
您可以在矩阵中填充随机整数和复数。
Consider the following class hierarchy for binary trees of ints.
考虑以下的int二元树的类层次结构。
The problem arises when passing the sum of signed and unsigned ints as long.
在将有符号整型和无符号整型的和作为long 类型传递时就会出现问题。
The assertions used in this example show how we can pass as many ints as desired.
这个例子中所用的断言显示了我们如何传入任意多的int类型的参数。
To enable memory access, it provides put and set methods for ints, chars, and bytes.
为允许内存访问,它为int、char和byte提供了put 和set方法。
Two constructors are defined on the class: one taking an int and one taking a pair of ints.
类中定义了两个构造函数:一个构造函数带有一个int参数,另一个带有两个int参数。
UNIX systems follow the LP64 model, where long and pointer types are 64 bits, but ints remain 32 bits.
UNIX系统则遵循lp64模型,其中long和指针类型都是64位的,但是int仍然保持为32位。
Also, notice that you can't just pass any old Strings and ints and arrays as the expectation arguments.
另外注意,不能作为预期参数传递任何String、int和数组。
Moreover, not being able to compare among floats, ints, and longs (or, for example, decimal) would be awkward.
另外,不能在浮点数、整数和长整数(比如decimal)之间进行比较是非常不方便的。
For addition, spu_add, when given two vector unsigned ints as parameters, will generate the a (32-bit add) instruction.
另外,当 spu_add 被传递两个vectorunsignedint作为参数时,就会生成一条 a(32 位加法)指令。
Moving simple types between the kernel and user-space (such as ints or longs) is accomplished easily with get_user and put_user.
要在内核和用户空间移动一些简单类型(例如int或long类型),可以使用get_user和put_user轻松地实现。
Specifically, complex Numbers became incomparable to other Numbers, including both other complex Numbers and ints, floats, and longs.
具体地说,复数无法与其他数字进行比较了,包括其他复数以及整数、浮点数和长整数。
The format of JSON is a collection of keys and values, which can be different data types, such as strings, ints or floats – see below.
JSON格式是一组键和值,可以是各种数据形式,比如字符串、整型或浮点型——往下看。
In arrays, this was very specific, as arrays are strongly typed — an int can only contain ints — and therefore there are no typecasts in the loop.
在数组中,类型非常明确,因为类型是强类型的,int只能包含整数,所以在循环中没有类型转换。
Much of that data is still stored as Strings with the generated code bindings, but some values can be converted to ints and others to object references.
对于生成代码绑定而言,许多实际数据仍然是作为String存储的,但是一些值可以被转换成int,而其它值可被转换成对象引用。
It's an easy matter to expand the phone types from ints to strings, although it will be a bit more work for your service to validate the incoming strings.
要将电话类型从整数扩展为字符串是一件很容易的事,虽然这样做将会为服务检查输入的数据带来一些工作量。
After generating the QDML file from a DTD grammar I had to edit the file to define the document root element and add type information for non-String values (a couple of ints, in this case).
根据DTD文法生成QDML文件之后,必须编辑该文件来定义文档的根元素,并为非string值(在这里,是几个int)添加类型信息。
After generating the QDML file from a DTD grammar I had to edit the file to define the document root element and add type information for non-String values (a couple of ints, in this case).
根据DTD文法生成QDML文件之后,必须编辑该文件来定义文档的根元素,并为非string值(在这里,是几个int)添加类型信息。
应用推荐