摘要: 1、类成员为const类型 2、类成员为引用类型 #include <iostream> using namespace std; class A { public: A(int &v) : i(v), p(v), j(v) {} void print_val() { cout << "hello: 阅读全文
posted @ 2018-04-26 10:49 蓝色小海豚07 阅读(1597) 评论(0) 推荐(0) 编辑