摘要:
1 #include <iostream> 2 using namespace std; 3 class A { 4 public: 5 int val; 6 A(int n = 123):val(n){} 7 A& GetObj(){return *this;} 8 }; 9 int main() 阅读全文
posted @ 2022-08-19 15:04
balabalahhh
阅读(36)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 using namespace std; 3 4 struct A 5 { 6 int v; 7 A(int vv):v(vv) { } 8 const A* getPointer()const {return this;} 9 }; 10 11 in 阅读全文
posted @ 2022-08-19 14:59
balabalahhh
阅读(33)
评论(0)
推荐(0)