构造/赋值/析构函数

  类中3个重要的成员函数,标准形式如下:

class A{
public:
    A();
    A(const A&);
    A& operator=(const A&);
    ~A();
};

  以后会补充

转载于:https://www.cnblogs.com/gattaca/p/4543274.html

猜你喜欢

转载自blog.csdn.net/weixin_34309435/article/details/93401823