与别名一样,指定外壳函数的最佳位置是在外壳的初始化脚本中。
As with aliases, the best place to specify shell functions is within the initialization script for your shell.
构造函数的初始化列表为类的一个或多个数据成员指定初值。
A constructor initializer list specifies initial values for one or more data members of the class.
构造函数的形参指定了创建类类型对象时使用的初始化式。
The constructor's parameters specify the initializers that may be used when creating objects of the class type.
在构造函数体现执行前,用初始化列表中指定的值初始化成员。
The members are initialized to the values specified in the initializer list before the body of the constructor executes.
如果没有默认构造函数,那么将会出现编译时错误:必须要给对象指定显式的初始化式。
If there is no default constructor, then there is a compile-time error: the object must be given an explicit initializer.
如果没有默认构造函数,那么将会出现编译时错误:必须要给对象指定显式的初始化式。
If there is no default constructor, then there is a compile-time error: the object must be given an explicit initializer.
应用推荐