摘要: 最近在看数据结构,于是乎就自动动手写个简单的Vector:#ifndef _CUSTOM_STRUCT#define _CUSTOM_STRUCT#define CAPACITY_VOLUMN 1000template<class object>class CustomVector{ typedef object* iterator; typedef object* const const_iterator;private: int size; int capacity; object* objects; void Reserve(int newSize) { object* ol 阅读全文
posted @ 2012-08-01 21:56 MagiCube 阅读(1254) 评论(0) 推荐(0) 编辑