初始化p A(){ p = 0;cout<<"A::A()"<<endl;} 初始化列表 Initializer list A():p(0){ cout<<"A::A()"<<endl;} 初始化vs赋值 赋值=默认初始化+赋值 尽量单独使用初始化