摘要: 链队列 1 #include 2 using namespace std; 3 template 4 class Queue 5 { 6 private: 7 struct node 8 { 9 T data;10 node * next;11 ... 阅读全文
posted @ 2014-05-24 11:18 DuskL 阅读(321) 评论(0) 推荐(0)
摘要: 循环队列 1 #include 2 using namespace std; 3 //#define maxSize 20 4 template 5 class Queue 6 { 7 private : 8 // T data[maxSize]; 9 int maxSize;10 ... 阅读全文
posted @ 2014-05-24 10:23 DuskL 阅读(268) 评论(0) 推荐(0)