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