摘要: struct A{ void f(){ } void f() const{ }};struct B{ B (A& a) : a(a) {} void f1(){ a.f(); } void f1() const{ a.f(); } A &a;};int main(int argc, char *ar 阅读全文
posted @ 2020-03-06 22:20 zJanly 阅读(114) 评论(0) 推荐(0) 编辑
摘要: struct A{ void f(){ } void f() const{ }};struct B{ void f1(){ a->f(); } void f1() const{ a->f(); } A *a;};int main(int argc, char *argv[]){ A a; B b; 阅读全文
posted @ 2020-03-06 22:17 zJanly 阅读(97) 评论(0) 推荐(0) 编辑