There is one crucially important difference between how we define variables and class data members: We ordinarily cannot initialize the members of a class as part of their definition.

  • 定义变量和定义数据成员存在非常重要的区别:一般不能把类成员的初始化作为其定义的一部分。
目录 查词历史