struct
美
英 
- 網(wǎng)絡(luò)結(jié)構(gòu);結(jié)構(gòu)體;結(jié)構(gòu)體類型
例句
It is possible to split the definition of a class or a struct, or an interface over two or more source files.
可以將類、結(jié)構(gòu)或接口的定義拆分到兩個(gè)或多個(gè)源文件中。
Keyword to overload a built-in operator or to provide a user-defined conversion in a class or struct declaration.
關(guān)鍵字用于在類或結(jié)構(gòu)聲明中聲明運(yùn)算符。運(yùn)算符聲明可以采用下列四種形式之一
Now, you might think that this would cause problems for programs calling malloc -- how do they know about this struct?
現(xiàn)在,您可能會(huì)認(rèn)為當(dāng)程序調(diào)用malloc時(shí)這會(huì)引發(fā)問題——它們如何知道這個(gè)結(jié)構(gòu)?
After this call, the struct is considered to be definitely assigned; that is, all its members are initialized to their default values.
在這個(gè)呼叫之后,此結(jié)構(gòu)將被視為已經(jīng)明確的指派了,也就是,它的所有成員都已經(jīng)初始化為它們的預(yù)設(shè)值。
A struct cannot be abstract and is always implicitly sealed.
struct不能為abstract,而應(yīng)始終為隱式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.
除非需要引用類型語義,將較小的類聲明為結(jié)構(gòu),可以提高系統(tǒng)的處理效率。
This sort of control over struct layout is useful when using platform invocation.
使用平臺(tái)調(diào)用時(shí),這種結(jié)構(gòu)布局控制很有用。
Internally, Boost is publicly deriving a class from the struct F (see Listing 19), then creating an object out of that class.
在內(nèi)部,Boost從structF公共地派生一個(gè)類(見清單19),然后從這個(gè)類創(chuàng)建對象。
You tried to initialize a bit field with a non scalar (struct, union, array, or class).
嘗試用非標(biāo)量(結(jié)構(gòu)、聯(lián)合、數(shù)組或類)初始化位域。
This struct acts as a container for the properties that you mark up (the link URL and linked text).
這個(gè)struct就好比是已標(biāo)記屬性(鏈接URL與被鏈接的文本)的一個(gè)容器。
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指定,虛擬文件系統(tǒng)作為structvfs的鏈表進(jìn)行維護(hù)。
Partial type definitions allow the definition of a class, struct or interface to be split into multiple files.
分部類型定義允許將類、結(jié)構(gòu)或接口的定義拆分到多個(gè)文件中。
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).
如果該條目是一個(gè)文件,那么顯示其名稱和字節(jié)數(shù)(可在structstat的st_size成員中找到)。
The volatile keyword can only be applied to fields of a class or struct.
所涉及的類型必須是類或結(jié)構(gòu)的字段。
Then, let's say that the address of the struct itself is in a register called register X.
然后,假設(shè)這個(gè)結(jié)構(gòu)體本身的地址在一個(gè)名為X的寄存器中。
Unless you need reference-type semantics, small classes may be more efficiently handled by the system as a struct.
除非需要引用類型語義,否則系統(tǒng)將較小的類作為結(jié)構(gòu)處理效率會(huì)更高。
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中指出了要采用的處理程序函數(shù),因此可以利用工作隊(duì)列來為不同的處理程序進(jìn)行任務(wù)排隊(duì)。
To set the access level for a class or struct member, add the appropriate keyword to the member declaration.
若要設(shè)置類成員或結(jié)構(gòu)成員的訪問級別,請向該成員聲明添加適當(dāng)的關(guān)鍵字。
Suppose you want to tag classes and structs with the name of the programmer who wrote the class or struct.
假設(shè)您要用編寫類或結(jié)構(gòu)的程序員的名字標(biāo)記類和結(jié)構(gòu)。
Generics permit classes, struct s, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
泛型允許類,結(jié)構(gòu),接口,委托和方法來根據(jù)它們所保存和維護(hù)的數(shù)據(jù)的類型而參數(shù)化。
Class or struct members can be declared with one of five types of access.
可以使用五種訪問類型之一來聲明類成員或結(jié)構(gòu)成員。
The work to be communicated through the work queue is defined by the work_struct structure.
通過工作隊(duì)列與之通信的任務(wù)可以由結(jié)構(gòu)體work_struct來定義。
In various languages, this collection is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
這個(gè)集合可能被實(shí)現(xiàn)為對象、記錄、結(jié)構(gòu)、詞典、散列表、鍵列表或關(guān)聯(lián)數(shù)組,具體情況取決于所使用的語言。
A default constructor is always provided to initialize the struct members to their default values.
總是提供默認(rèn)構(gòu)造函數(shù)以將結(jié)構(gòu)成員初始化為它們的默認(rèn)值。
A special method on a class or struct that initializes the objects of that type.
類或結(jié)構(gòu)中用于初始化該類型的對象的一種特殊方法。
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是一個(gè)結(jié)構(gòu)體類型,要么它的所有成員變量都是公有的,要么賦值發(fā)生在聲明T的包內(nèi)。
Indexers permit instances of a class or struct to be indexed in the same way as arrays.
索引器允許類或結(jié)構(gòu)的實(shí)例按照與數(shù)組相同的方式進(jìn)行索引。
Work is represented by a work_struct structure, which identifies the work to be deferred and the deferral function to use (see Figure 3).
任務(wù)由結(jié)構(gòu)體work_struct來說明,用來鑒別哪些任務(wù)被延遲以及使用哪個(gè)延遲函數(shù)(參見圖3)。
Name this parameter start and set its direction as In , and then from Browse type dialog, select Point struct as its type.
將該參數(shù)命名為start,并將其方向設(shè)置為In,然后在Browsetype對話框中,選擇Pointstruct作為類型。
Within a struct declaration, fields cannot be initialized unless they are declared as const or static.
在結(jié)構(gòu)聲明中,除非字段被聲明為const或static,否則無法初始化。
Struct is an opaque representation of the token returned by the metadata to represent a parameter.
結(jié)構(gòu)是由元數(shù)據(jù)返回以表示參數(shù)的標(biāo)記的不透明表示形式。
The fixed array can take any of the attributes or modifiers that are allowed for regular struct members.
固定數(shù)組可采用允許普通結(jié)構(gòu)成員使用的任何屬性或修飾符。
A struct cannot inherit from another struct or class, and it cannot be the base of a class.
一個(gè)結(jié)構(gòu)不能從另一個(gè)結(jié)構(gòu)或類繼承,而且不能作為一個(gè)類的基。
Any class, struct, or interface members declared in a partial definition are available to all of the other parts.
在某一分部定義中聲明的任何類、結(jié)構(gòu)或接口成員可供所有其他部分使用。
The Linux kernel keeps complete information about a process in a process descriptor defined as struct task_struct.
Linux內(nèi)核將關(guān)于進(jìn)程的完整信息保存在進(jìn)程描述符中,它的結(jié)構(gòu)被定義為structtask_struct。
VLA cannot be a member of a struct or union.
VLA不能是結(jié)構(gòu)或者聯(lián)合的成員。
Struct is an object representation of a token that represents a method.
結(jié)構(gòu)是表示方法的標(biāo)記的對象表示形式。
To resolve this error, change the class to a struct or declare the field as an ordinary array.
若要解決此錯(cuò)誤,請將class更改為struct或者將字段聲明為普通數(shù)組。
Whenever a class or struct is created, its constructor is called.
每當(dāng)建立類別或結(jié)構(gòu)時(shí),就會(huì)呼叫它的建構(gòu)函式。