//LinkDancingQueue public LinkQueue() { front = rear = null; size = 0; }
//清空链队列 public void Clear() { front = rear = null; size = 0; }
private QueueNode <T> next; //引用域 //构造函数 public QueueNode(T val, QueueNode <T> p) { data = val; next = p; }
//构造函数 public QueueNode() { data = default(T); next = null; }
//构造函数 public QueueNode(T val) { data = val; next = null; }
//构造函数 public QueueNode(QueueNode <T> p) { next = p; }