摘要: template<class T>struct SetNode { T data; SetNode<T>* link; SetNode():link(NULL) {} SetNode(const T& x, SetNode<T>* next = NULL):data(x), link(next) {}};template<class T>class LinkedSet { public: LinkedSet() {first_ = last_ = new SetNode<T>;} LinkedSet(LinkedSet< 阅读全文
posted @ 2009-02-18 11:58 小 楼 一 夜 听 春 雨 阅读(323) 评论(0) 推荐(0)