摘要: 继承了父类,就一定要调用父类的构造函数 构造函数的执行顺序和析构函数的执行顺序刚好完全相反#include "stdafx.h"#include <iostream>#include <time.h>using namespace std;class B1{public: B1(int i) { c 阅读全文
posted @ 2017-08-31 14:48 倾耳听 阅读(201) 评论(0) 推荐(0) 编辑