c++ Instance of class in same class, using constructor

后端 未结 0 890
陌清茗
陌清茗 2021-01-18 04:22

I have class A, is it possible to make sth like this? A(A(A()))? I mean creating some object in constructor and so on?

class A {
private:
    A *a;
public:
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题