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 类型传递时就会出现问题。
Represent 24-bit audio samples as 32-bit ints and ignore the upper eight bits.
代表24位音频样本作为32位整型数和忽视上八位。
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参数。
For actually working with the data, ints are far more convenient and efficient than Strings.
当实际使用数据时,int 远比 String更便利和有效。
Spu_splats ((unsigned int) 5) creates a vector of unsigned ints with each element having the value 5.
spu_splats ((unsignedint)5)创建了一个unsignedint类型的向量,每个元素的值都是5。
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和数组。
Use ints where they make sense, but don't agonize over the performance implications of int versus Number.
在int具有意义的地方使用int,但是不要被int与Number的性能问题所煎熬。
So, should I be drawing these boxes four times bigger since ints are four times bigger than chars usually?
所以,我应该把这个盒子画成4倍大,因为一般int型是char型的4倍大小?
All the flag values are static final ints and are defined in the SWT class in the org.eclipse.swt package.
所有这些参数值都是staticfinalint,并且都是在or g. eclipse . swt包的swt类中定义的。
Moreover, not being able to compare among floats, ints, and longs (or, for example, decimal) would be awkward.
另外,不能在浮点数、整数和长整数(比如decimal)之间进行比较是非常不方便的。
Int So, primitive type besides those three types, we have ints which are just integers which are similarly 32 bits.
除了这三种类型外,还有一种最原始的数据类型,32比特整数。
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 位加法)指令。
When old clients send ints, the integer characters are still characters, and they can be sent as strings as well as ints.
当旧客户端发送int时,保持原有整型数的特性,它们既可以被作为字符串也可以作为整数(ints)发送。
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格式是一组键和值,可以是各种数据形式,比如字符串、整型或浮点型——往下看。
When you think about it, the set of all possible strings is much larger than the set of all possible ints, making a two-way mapping impossible.
当你想到它时,所有可能远远大于字符串的所有可能的整数,使双向映射是不可能的。
spu_promote((unsigned int)5, 1) creates a vector of unsigned ints with 5 in the second element (element 1), and the remaining elements undefined.
spu_promote((unsignedint)5,1)创建了一个 unsignedint 类型的向量,其中第二个元素(元素 1)为 5,其他元素尚未定义。
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只能包含整数,所以在循环中没有类型转换。
So at the end of the day we're not gonna get out of this need to compare, at least in this context of cups that have weights or ints that have values.
最终我们也无法改变要进行比较的需要,至少在有重量的杯子或者,整数的情况下是这样的。
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.
要将电话类型从整数扩展为字符串是一件很容易的事,虽然这样做将会为服务检查输入的数据带来一些工作量。
应用推荐