重载拷贝构造函数:
class A: thread { public: A() {
} A(const A& rhs){ x = rhs.x;}; private: int x;
};
手机扫一扫
移动阅读更方便
你可能感兴趣的文章