如果指针指向继承层次中的一种类型,指针所指对象的类型就有可能与指针的类型不同。
If the pointer points to a type from an inheritance hierarchy, it is possible that the type of the object to which the pointer points is different from the type of the pointer.
因为结构,也就是通常所说的值类型,可以被用在堆栈里,并不能总是为它们创建一个指针。
Because structures, also known as value types, can appear on the stack, it is not always possible to create a pointer to them.
因此,需要注意将整数值转换为指针类型的应用程序。
Therefore, applications casting integer values to pointer types might need attention.
同时需要有另一个类型为SSL_CTX的指针。
导致内存破坏的指针操作类型。
UNIX系统则遵循lp64模型,其中long和指针类型都是64位的,但是int仍然保持为32位。
UNIX systems follow the LP64 model, where long and pointer types are 64 bits, but ints remain 32 bits.
本身支持32位类型的系统通常都保留32位的long和指针,不过这些系统引入了一个新类型 “long long”,它是 64 位的。
Systems with native 32-bit types often kept both long and pointer sizes 32 bit, but introduced a new type, "long long," which was 64 bit.
基于C的Objective - c使用指针类型,UML中则没有。
Objective-C — being C-based — USES pointer types, which are not easily modeled in UML.
在Win32系统中开发的C++代码是基于ILP32模型的,在该模型中,int、long和指针类型都是32位的。
C + + code developed in Win32 systems is based on the ILP32 model, where int, long, and pointer types are 32 bits.
XMLStreamReader接口基本上定义了基于指针的API(虽然标记常量在其超类型 XMLStreamConstants 接口中定义)。
The XMLStreamReader interface essentially defines the cursor-based API (though the token constants are defined in its super-type, interface XMLStreamConstants).
把鼠标指针移动到饼图的每个部分上,就会看到这种语句类型的百分比。
Move the pointer over each section of the pie chart to view the percentage for the statement type.
每个元组的第一项是可调用对象(在这里是一个方法指针),第二项是 HTTP请求类型,这种请求类型可以调用该方法。
The first item in each tuple is a callable object (in this case a method pointer) and the second is a HTTP request type that the method should be called for.
比范围更加微妙的是指针和整型之间的转换;由于这些转换通常都包括强制类型转换,因此编译器很难告诉您到底做错了什么。
More subtle than ranges are conversions between pointers and integers; because these conversions generally involve casts, it's hard for the compiler to tell you what you're doing wrong.
在下一个部分,我们将还要注视另外一个非常普遍的,也被证明是一个空指针异常的错误类型,以及怎样识别它和避免它。
In the next installment, we'll take a look at yet another very common bug pattern that manifests itself as a null-pointer exception, how to recognize it, and how to avoid it.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
在现代的IDE中,所有必要的类型信息都能被找到,并作为鼠标指针的提示出现。
In modern IDEs, all necessary type information can be found at the tip of your mouse pointer.
将字符指针和字符字节声明为无符号类型的,这样可以防止8位字符的符号扩展问题。
Declare character Pointers and character bytes as unsigned to avoid sign extension problems with 8-bit characters.
我们将探讨的第一个关于空指针异常的错误类型,是一个我称之为悬挂复合类型的错误类型。
The first bug pattern relating to null-pointer exceptions that we'll explore is one that I call the Dangling Composite pattern.
这些事件标识了更改的类型,并包含指向所更改对象的指针。
These events identify the type of the change and contain a pointer to the object that was changed.
框架的约束处理模型包含一个指针,为BICS文档中的约束指定了成功处理条件的类型。
The framework's constraint processing model contains an indicator that specifies the type of successful processing conditions for the set of constraints within a BICS document.
还需要另一个ssl类型的指针来保持SSL连接结构(这是短时间就能完成的一些连接所必需的)。
Another pointer of type SSL is also needed to hold the SSL connection structure (this is required for something that will be done shortly).
如果两个指针有相同的基类型,那么它们相同。
Two pointer types are identical if they have identical base types.
解决方案是将指针作为指针类型或为此而定义的特殊类型进行存储,例如 intptr_t和 uintptr_t。
The solution is to store pointers as pointer types or the special types defined for this purpose, such as intptr_t and uintptr_t.
在这个方案中,对象由指针代表,而GtkWidget是GTK +层次结构中的基本类型——叫做类,其他类都从它派生而来。
In this scheme, objects are represented by Pointers, and GtkWidget is the basic type — called a class — in the GTK + hierarchy from which all other classes are derived.
这个函数使用了两个参数:一个long类型,以及一个指向被定义为__user的long的指针。
This function takes two arguments: a long and a pointer to a long that's defined as __user.
这里得到的类型是指向int型的指针。
要在程序中使用一个变量来容纳这种链表,您需要做的只是使用一个指向类型struct ll_int _ node的指针。
To have a variable hold this kind of list in a program, all you need is to have a pointer that points to type struct ll_int_node.
下一行包含几个到GtkWidget类型的指针的声明。
The next line contains several declarations of Pointers to the GtkWidget type.
下一行包含几个到GtkWidget类型的指针的声明。
The next line contains several declarations of Pointers to the GtkWidget type.
应用推荐