- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 类模版实现动态顺序表
#include<iostream>#include<assert.h>using namespace std;#pragma warning(disable:4996)template<class T, int DefaultCapacity = 10>class SeqList{public: SeqList(T* data = NULL, size_t size = 0);
2015-09-19 15:15:28 503
原创 模拟c++的string类
#include<iostream>#include<assert.h>using namespace std;#pragma warning(disable:4996)#define DEFAULT_CAPACITY 5class String{public: String(const char* str = "") :_str(new char[strlen(
2015-09-06 21:51:36 759
原创 万年历
#include<iostream>using namespace std;class Date{public: // 初始化列表进行初始化。 Date(int year = 1900, int month = 1, int day = 1) //构造函数 :_year(year) , _month(month) , _day
2015-09-03 09:43:45 445
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人