STRUCTS 中文是什么意思 - 中文翻译 S

在 英语 中使用 Structs 的示例及其翻译为 中文

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
Go Structs.
Go结构结构.
Structs are“and” types.
Struct是“and”类型。
When should we use structs over a class?
什么时候使用struct什么时候用class?
In C structs are very different from classes.
而在C中,structs和类有很大的区别。
Struct members cannot be declared as protected because structs do not support inheritance.
结构成员无法声明为protected成员,因为结构不支持继承。
However, in C structs and classes are very different.
而在C中,structs和类有很大的区别。
It has to be fluid and change according to modifications being made in the respective entities(properties, methods,classes, structs, enums).
它可以根据各自实体(属性、方法、类、结构、枚举)的修改而改变。
Structs are a way of creating more complex data types.
结构体是创建更复杂的数据类型的一种方式。
Bond generated c++ structs can also use custom allocators.
Bond生成的C++结构体还能使用自定义的分配器。
Structs are particularly useful for small data structures that have value semantics.
结构对于具有值语义的小型数据结构尤为有用。
The privacy rules apply to structs, enums, functions, and methods as well as modules.
私有性规则适用于结构体、枚举、函数和方法以及模块。
Structs follow the same rules as any other data type- everything must be initialized before use.
结构遵循其他数据类型都遵循的规则:在使用前所有的元素都必须进行初始化。
The primary difference is that structs are value types and classes are reference types.
就是,主要一个区别就是:struct是值类型的,而class是引用类型的。
All structs inherit directly from System. ValueType, which inherits from System. Object.
所有结构都直接继承自System.ValueType,后者继承自System.Object。
XML-RPC parameters are a simple list of types and content- structs and arrays are the most complex types available.
XML-RPC参数是一个简单的类型和内容列表-结构和数组是最复杂的类型。
Because structs are implicitly sealed, they cannot be inherited.
由于结构是隐式密封的,因此它们不能被继承。
Predefined value types such as int are treated specially in a few ways butare for the most part treated exactly like other structs.
例如int的预定义数据类型在某些地方被认为是特别的,但在大多数地方会像其它结构一样被正确对待。
Unlike classes, structs are value types and do not require heap allocation.
与类不同的是,结构是值类型并且不需要堆分配。
Structs are best suited for small data structures that contain primarily data that is not intended to be modified after the struct is created.
结构最适合一些小型数据结构,这些数据结构包含的数据以创建结构后不修改的数据为主。
For small classes and structs, it is not necessary to separate the method declaration from the implementation.
对于小类和结构,没有必要将方法声明与实现分开。
Structs are best suited for small data structures that contain primarily data that is not intended to be modified after the struct is created.
结构体适合一些小型数据结构,这些数据结构包含的数据以创建结构后不修改的数据为主;.
The first difference is that structs get copied whenever they're assigned to a variable or passed to a function.
第一个不同是一旦structs被赋值给一个变量或则传递到一个函数的时候,它都会被复制。
Because structs are really intended to group data items together, you will sometimes find that most or all of their fields are declared as public.
因为结构实际上是把数据项组合在一起,有时大多数甚至全部字段都声明为public。
Generics permit classes, interfaces, structs, delegates and methods to be parameterized by the types of data they store and manipulate.
泛型可以让类、结构、接口、委托和方法,通过他们所存储和操纵的数据的类型被参数化。
Classes and structs are two of the basic constructs of the common type system in the. NET Framework.
类和结构是.NETFramework中的常规类型系统的两种基本构造。
Furthermore, because structs are not reference types, it is not possible for values of a struct type to be null.
另外,由于结构不是引用类型,因此结构类型的值不可能为null。
However, for simple structs, many developes would nevertheless consider public fields to be acceptable programming practice.
但是,对于简单的结构,许多开发人员都认为公共字段是可接受的编程方式。
The members of anonymous structs are promoted to the scope of the containing struct and looked up like ordinary members.
匿名结构的成员将升级为包含struct的范围,并且像普通成员一样对其进行查找。
Nested types- classes, structs, and enums- are listed alongside properties and methods, which takes a little getting used to.
嵌套类型-类,结构和枚举-与属性和方法一起列出,这需要一点时间习惯。
Chapter 5 discusses structs and methods, and Chapter 6 covers enums, match expressions, and the if let control flow construct.
第5章讨论了结构和方法,第6章讨论了枚举,match表达式和iflet控制流结构。
结果: 64, 时间: 0.0295

顶级字典查询

英语 - 中文