C++实现循环链表实例源码教程,VS2005运行通过,如有问题,请各位大牛指正。谢谢
注意:循环链表含有头结点
[cpp] view plaincopy
#include <iostream>
using namespace std;
template<class Type>
struct Node
{
Type data;
Node<Type> *next;
};
template<class Type>
class Circlist
{
protected:
int len;//链表中结点个数
Node[......]