摘要: #include<iostream> using namespace std;template<class T>class SqQueue{ protected: int front,rear; int maxSize; T *elem; public: SqQueue(int size); ~Sq 阅读全文
posted @ 2016-05-31 17:03 ranran1203 阅读(153) 评论(0) 推荐(0)
摘要: #include<iostream> template<class T>struct Node{ T data; Node<T> *next;};template<class T>class Queue{private: Node<T> *front, *rear;public: Queue(); 阅读全文
posted @ 2016-05-31 16:03 ranran1203 阅读(125) 评论(0) 推荐(0)
摘要: #include<iostream> template<class T>class SqStack{protected: int count; int maxSize; T *elem;public: SqStack(int size); ~SqStack(); int Length(){ retu 阅读全文
posted @ 2016-05-31 14:39 ranran1203 阅读(126) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std;template <class T>struct Node{ T data; Node<T> *next;};template <class T>class List{public: List(int len); ~Lis 阅读全文
posted @ 2016-05-31 14:12 ranran1203 阅读(120) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;template<typename T>class SqList{private: int count;//实际元素个数 int Maxsize;//数组最大长度 T *elem;public: SqList(int siz 阅读全文
posted @ 2016-05-31 11:10 ranran1203 阅读(144) 评论(0) 推荐(0)