You can initialize struct members only by using a parameterized constructor or by accessing the members individually after the struct is declared.
只能通过两种方式初始化结构成员:一是使用参数化构造函数,二是在声明结构后分别访问成员。
Struct members are initialized to their default value if you do not explicitly initialize them.
在未进行显式初始化的情况下,结构成员将初始化为其默认值。
Struct members are initialized to their default value if you do not explicitly initialize them.
在未进行显式初始化的情况下,结构成员将初始化为其默认值。
应用推荐