In other words, a struct value can be assigned to a struct variable only if every field of the struct may be legally assigned individually by the program.
换句话说,如果想把一个结构体赋值给另一个结构体,就必须让该结构体的每一个成员变量都能被程序合法的赋值。
Struct members are initialized to their default value if you do not explicitly initialize them.
在未进行显式初始化的情况下,结构成员将初始化为其默认值。
A struct is a value type, while a class is a reference type.
结构是值类型,而类是引用类型。
应用推荐