1.线性表接口

namespace DSList
{
    public interface IListDS<T>
    {
        int GetLength();                //求长度
        bool IsEmpty();                 //判断线性表是否为空
        void Clear();                   //清空操作
        void Append(T item);            //追加操作
        void Insert(int pos, T item);   //插入操作
        T Remove(int pos);              //删除操作
        T GetElem(int pos);             //取表元
        int Locate(T item);             //按值查找
    }
}
posted @ 2011-03-27 00:22  山之松  阅读(136)  评论(0编辑  收藏  举报