摘要:
关于栈,这里的定义和前面的顺序表是一样,采用数组的形式,详细请见: 顺序表栈相关处理类代码: /// <summary> /// Description of SequenceStack. /// </summary> public class SequenceStack<T> where T:IComparable { private Sequence<T> _sequence; private int _size; public SequenceStack(int size) { _size=size; _sequence=new Seque 阅读全文
摘要:
顺序表定义: /// <summary> /// Description of Sequence. /// </summary> public struct Sequence<T> where T:IComparable { private T[] _data; private int _current; public Sequence(int size) { _data=new T[size]; _current=0; } public T[] Data { get{return _data;} } public int Current { get{ret 阅读全文
摘要:
目录线性表及其顺序存储 顺序表栈队列循环队列线性表的链式存储 阅读全文