struct

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.

内部BooststructF公共派生一个清单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).

如果条目一个文件那么显示名称字节structstatst_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.

结构声明除非字段声明conststatic否则无法初始

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.

每当建立类别结构呼叫建构