摘要: 早前写得栈的实现,基本功能都有。代码: /// <summary> /// 栈 /// </summary> public class Stack { private object[] data; //用data数组来储存数据 private int size; //栈的大小 private int top; //top指针 public object this[int loc] { get { return loc >= 0 && loc <= to... 阅读全文
posted @ 2013-06-01 20:11 yis 阅读(226) 评论(0) 推荐(0) 编辑