摘要: 今天尝试用template完成一个循环链表,期间几费周折,将遇到的问题记录一下。这是最后完成的circleList.hpp文件。#ifndef CIRCLELIST_HPP_#define CIRCLELIST_HPP_template class CircleList;template class CNode { private: T elem; CNode* next; friend class CircleList;};template class CircleList { public: CircleList(); ~CircleList(); bool empty() ... 阅读全文
posted @ 2013-11-24 21:48 darlwen 阅读(278) 评论(0) 推荐(0) 编辑