this指针为空

1,.this指针:指向该对象自己,this的类型:类型名 const *this; 那么this能够为空吗?web 以下程序,指针为空的状况; class person { public: person() {} person( string a="",int b=12) :name(a),age(b) {} void test() { cout << “这是test” << endl; } v
相关文章
相关标签/搜索