正在加载图片...
Class sorted chain template<class e, class K> class Sorted Chain( public Sorted(first=0; sorted Chain bool isemptyo const return first==0; int Lengthy const bool search(const K&k, e& e)const Sorted chain<E, K>& delete(const K&k, e& e Sorted chain<EK>& Insert( const e&e)许关键字相同 Sorted chain<EK>& DistinctInsert( const ec&e)/不允许关 键字相同 private Sorted chainnode<e k> *first 山东大学计算机科学与技术学院数据结构第7章跳表和散列山东大学计算机科学与技术学院 数据结构 第7章 跳表和散列 9 Class SortedChain template<class E ,class K> class SortedChain{ public : SortedChain() {first =0;} ~SortedChain(); bool IsEmpty() const {return first = =0;} int Length() const; bool Search(const K& k , E& e) const; SortedChain<E ,K>& Delete(const K& k , E& e); SortedChain<E ,K>& Insert(const E& e);//允许关键字相同 SortedChain<E ,K>& DistinctInsert(const E& e);//不允许关 键字相同 private: SortedChainNode<E ,K> *first; } ;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有