摘要: C#实现队列,能实现循环队列,缺点是可用长度比声明的长度少1。代码: /// <summary> /// 队列 /// </summary> public class Queue { private object[] data; //用数组data来存储数据 protected int length; protected int head; //头指针 protected int tail; //尾指针 public int Length { ge... 阅读全文
posted @ 2013-05-23 18:11 yis 阅读(534) 评论(0) 推荐(0) 编辑