05 2013 档案
摘要:C#实现队列,能实现循环队列,缺点是可用长度比声明的长度少1。代码: /// <summary> /// 队列 /// </summary> public class Queue { private object[] data; //用数组data来存储数据 protected int length; protected int head; //头指针 protected int tail; //尾指针 public int Length { ge...
阅读全文