摘要: 1.Initializer(初始化器) 例 class Time { public: Time(); private: int hour; int minute; }; //调用构造函数时,会为hour,minute赋初始值0 Time::Time():hour(0),minute(0) { } 2 阅读全文
posted @ 2020-09-13 22:49 inss!w! 阅读(834) 评论(0) 推荐(0) 编辑