C++之繼承類中的this指針

#include<iostream> #include<typeinfo> using namespace std; class A { public: A() { cout << this << endl; cout << typeid(this).name() << endl; cout << "&a = " << &a << endl
相關文章
相關標籤/搜索