STL3-MyArray动态数组类模板实现

注意ios 一、右值的拷贝使用数组 二、拷贝构造函数的使用 函数 #include<iostream> using namespace std; template<class T> class MyArray{ public: MyArray(int capacity) { this->mCapacity = capacity; this->mSize = 0; //申请内存
相关文章
相关标签/搜索