只有复杂的变量需要初始化。
您可以声明并初始化一个测试变量,设置它的范围,并更改它的值。
You can declare and initialize a test variable, set its scope, and change its value.
可以在自己的变量初始化中使用一行或两行。
You can use one line or two in your own variable initializations.
你可以使用相同的语句初始化变量。
所以对变量进行初始化会是个不错的主意。
构造函数中除了使用简单的值对局部变量进行初始化之外,什么都不应该做。
Constructors should do no more than set the initial local variables to simple values.
结构变量的每个成员被视为单独的变量初始化。
Each member of a structure variable is initialized as if it were a separate variable.
结构变量的每个成员被视为单独的变量初始化。
Each member of a structure variable is initialized as if it were a separate variable.
应用推荐