struct
美
英 
例句
It is possible to split the definition of a class or a struct, or an interface over two or more source files.
可以将类、结构或接口的定义拆分到两个或多个源文件中。
Keyword to overload a built-in operator or to provide a user-defined conversion in a class or struct declaration.
关键字用于在类或结构声明中声明运算符。运算符声明可以采用下列四种形式之一
Now, you might think that this would cause problems for programs calling malloc -- how do they know about this struct?
现在,您可能会认为当程序调用malloc时这会引发问题——它们如何知道这个结构?
After this call, the struct is considered to be definitely assigned; that is, all its members are initialized to their default values.
在这个呼叫之后,此结构将被视为已经明确的指派了,也就是,它的所有成员都已经初始化为它们的预设值。
A struct cannot be abstract and is always implicitly sealed.
struct不能为abstract,而应始终为隐式sealed。
The main SPE program will receive an effective address pointer to a struct containing the size and pointer of a string in main memory.
主SPE程序将接收到包含字符串大小和指针的struct的有效地址指针。
Unless you need reference-type semantics, a small class may be more efficiently handled by the system if you declare it as a struct instead.
除非需要引用类型语义,将较小的类声明为结构,可以提高系统的处理效率。
This sort of control over struct layout is useful when using platform invocation.
使用平台调用时,这种结构布局控制很有用。
Internally, Boost is publicly deriving a class from the struct F (see Listing 19), then creating an object out of that class.
在内部,Boost从structF公共地派生一个类(见清单19),然后从这个类创建对象。
You tried to initialize a bit field with a non scalar (struct, union, array, or class).
尝试用非标量(结构、联合、数组或类)初始化位域。
This struct acts as a container for the properties that you mark up (the link URL and linked text).
这个struct就好比是已标记属性(链接URL与被链接的文本)的一个容器。
As shown in Listing 1, the virtual file system is maintained as a linked list of struct vfs, as denoted by the member vfs_next.
如清单1所示,由成员vfs_next指定,虚拟文件系统作为structvfs的链表进行维护。
Partial type definitions allow the definition of a class, struct or interface to be split into multiple files.
分部类型定义允许将类、结构或接口的定义拆分到多个文件中。
If the entry is a file, you print the name and the number of bytes it's currently using (found using the st_size member of the struct stat).
如果该条目是一个文件,那么显示其名称和字节数(可在structstat的st_size成员中找到)。
The volatile keyword can only be applied to fields of a class or struct.
所涉及的类型必须是类或结构的字段。
Then, let's say that the address of the struct itself is in a register called register X.
然后,假设这个结构体本身的地址在一个名为X的寄存器中。
Unless you need reference-type semantics, small classes may be more efficiently handled by the system as a struct.
除非需要引用类型语义,否则系统将较小的类作为结构处理效率会更高。
As the work_struct indicates the handler function to use, you can use the work queue to queue work for a variety of handlers.
由于work_struct中指出了要采用的处理程序函数,因此可以利用工作队列来为不同的处理程序进行任务排队。
To set the access level for a class or struct member, add the appropriate keyword to the member declaration.
若要设置类成员或结构成员的访问级别,请向该成员声明添加适当的关键字。
Suppose you want to tag classes and structs with the name of the programmer who wrote the class or struct.
假设您要用编写类或结构的程序员的名字标记类和结构。
Generics permit classes, struct s, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
泛型允许类,结构,接口,委托和方法来根据它们所保存和维护的数据的类型而参数化。
Class or struct members can be declared with one of five types of access.
可以使用五种访问类型之一来声明类成员或结构成员。
The work to be communicated through the work queue is defined by the work_struct structure.
通过工作队列与之通信的任务可以由结构体work_struct来定义。
In various languages, this collection is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
这个集合可能被实现为对象、记录、结构、词典、散列表、键列表或关联数组,具体情况取决于所使用的语言。
A default constructor is always provided to initialize the struct members to their default values.
总是提供默认构造函数以将结构成员初始化为它们的默认值。
A special method on a class or struct that initializes the objects of that type.
类或结构中用于初始化该类型的对象的一种特殊方法。
If T is a struct type, either all fields of T must be exported, or the assignment must be in the same package in which T is declared.
如果T是一个结构体类型,要么它的所有成员变量都是公有的,要么赋值发生在声明T的包内。
Indexers permit instances of a class or struct to be indexed in the same way as arrays.
索引器允许类或结构的实例按照与数组相同的方式进行索引。
Work is represented by a work_struct structure, which identifies the work to be deferred and the deferral function to use (see Figure 3).
任务由结构体work_struct来说明,用来鉴别哪些任务被延迟以及使用哪个延迟函数(参见图3)。
Name this parameter start and set its direction as In , and then from Browse type dialog, select Point struct as its type.
将该参数命名为start,并将其方向设置为In,然后在Browsetype对话框中,选择Pointstruct作为类型。
Within a struct declaration, fields cannot be initialized unless they are declared as const or static.
在结构声明中,除非字段被声明为const或static,否则无法初始化。
Struct is an opaque representation of the token returned by the metadata to represent a parameter.
结构是由元数据返回以表示参数的标记的不透明表示形式。
The fixed array can take any of the attributes or modifiers that are allowed for regular struct members.
固定数组可采用允许普通结构成员使用的任何属性或修饰符。
A struct cannot inherit from another struct or class, and it cannot be the base of a class.
一个结构不能从另一个结构或类继承,而且不能作为一个类的基。
Any class, struct, or interface members declared in a partial definition are available to all of the other parts.
在某一分部定义中声明的任何类、结构或接口成员可供所有其他部分使用。
The Linux kernel keeps complete information about a process in a process descriptor defined as struct task_struct.
Linux内核将关于进程的完整信息保存在进程描述符中,它的结构被定义为structtask_struct。
VLA cannot be a member of a struct or union.
VLA不能是结构或者联合的成员。
Struct is an object representation of a token that represents a method.
结构是表示方法的标记的对象表示形式。
To resolve this error, change the class to a struct or declare the field as an ordinary array.
若要解决此错误,请将class更改为struct或者将字段声明为普通数组。
Whenever a class or struct is created, its constructor is called.
每当建立类别或结构时,就会呼叫它的建构函式。