Merge pull request #24 from easyYao/master

initialize
This commit is contained in:
Menghui Xie
2019-02-24 11:10:10 +08:00
committed by GitHub

View File

@@ -41,7 +41,7 @@ private:
public:
// 构造函数
A() { };
A() : a(0) { };
A(int x) : a(x) { }; // 初始化列表
// const可用于对重载函数的区分