何小豆儿在此 发表于 2022-11-19 18:02:25

<三>使用类模板实现STL Vector

使用类模板实现STL Vector,点击查看代码#include using namespace std;templateclass MyVector {public://构造函数MyVector(int size = 10) {        T * _tep = new T();        first = _tep;        last = _tep;        end = first + size;//        cout
页: [1]
查看完整版本: <三>使用类模板实现STL Vector