在这个方案中,对象由指针代表,而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.
XMLStreamReader 接口基本上定义了基于指针的 API(虽然标记常量在其超类型 XMLStreamConstants 接口中定义)。
The XMLStreamReader interface essentially defines the cursor-based API (though the token constants are defined in its super-type, interface XMLStreamConstants).
new函数除了构建一个包括它的对象引用以外,基本上没什么作用。而且您可以看到,其它的函数在执行前必须先将那个空指针解开。
The new function basically does nothing besides building the object reference to contain that, and you can see that the other functions have to unpack the void pointer before getting down to business.
Number one, the basic structure is that you have a pointer and it points over to a pointee, but the pointer and pointee are separate and the common error is to set up a pointer but to forget to give it a pointee.
第一,基本结构是,你有一个,指向数据的指针,但是那个指针和数据,是分开的,通常错误是声明了一个指针,但是没有指向一个数据。
应用推荐