摘要: #includeusing namespace std;template class Stack{ private: struct Node{ Object data; Node * next; Node(cons... 阅读全文
posted @ 2014-05-23 20:48 DuskL 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 顺序栈#includeusing namespace std;#define increasesize 10template class Stack{public: explicit Stack (int capacity = 10) { theArray = new Ob... 阅读全文
posted @ 2014-05-23 20:47 DuskL 阅读(231) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include using namespace std;template class joseph{ struct node { T data; node * next; node():next(... 阅读全文
posted @ 2014-05-23 16:31 DuskL 阅读(415) 评论(0) 推荐(0) 编辑