- 博客(1)
- 收藏
- 关注
原创 顺序表、链表、栈、队列的c++代码实现
仅实现基本功能(插入、删除、查找、遍历、翻转)且不是最优写法,欢迎批评指正。 //顺序表 #初步验证ok #include <iostream> using namespace std; template <class ElemType> class SeqList{ private: ElemType* list; int len; int maxlen; public: SeqList(int m) //InitList { list=new ElemType[m]
2021-01-25 17:16:43 209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人