Skip to content

Commit

Permalink
initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
yxcn committed Feb 24, 2019
1 parent 59f6cd2 commit b83610a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private:

public:
// 构造函数
A() { };
A() : a(0) { };
A(int x) : a(x) { }; // 初始化列表

// const可用于对重载函数的区分
Expand Down

0 comments on commit b83610a

Please sign in to comment.