String的构造函数,拷贝构造函数、析构函数和赋值函数
发布时间:2021-05-20 14:29:58 所属栏目:大数据 来源: https://blog.csdn.net/dragonf
导读:? 已知类String的原型为: class String { public: String(const char *str = NULL); // 普通构造函数 String(const String other); // 拷贝构造函数 ~ String(void); // 析构函数 String operate =(const String other); // 赋值函数 private: char *m_data;
? |