提交 b83610a6 编写于 作者: X xiang

initialize

上级 59f6cd2d
......@@ -41,7 +41,7 @@ private:
public:
// 构造函数
A() { };
A() : a(0) { };
A(int x) : a(x) { }; // 初始化列表
// const可用于对重载函数的区分
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册