04 2017 档案

摘要:Day1 如果成员是const 、引用,或者属于某种未提供默认构造函数的类类型,我们必须通过构造函数初始化值列表为这些成员提供初始值。 例如: class ConstRef{ public: ConstRef(int ii); private: int i; const int ci; int &r 阅读全文
posted @ 2017-04-11 21:49 show_me 阅读(90) 评论(0) 推荐(0)