C++中的「淺拷貝」與「深拷貝」

淺拷貝問題的提出   首先,咱們先看一段代碼:c++ #include<string.h> using namespace std; class test { private: char* p; int len; public: test(const char* p) { len = strlen(p); this->p = ne
相關文章
相關標籤/搜索