正在加载图片...
assert (i>0 &i<=CurrentSize); return Element[i-1].key; virtual void setKey (K x,int i) /修改第i个(从1开始)元素的ky值 assert (i>0&i<=CurrentSize); Element[i-1].key =x; virtual int SeqSearch (const K x)const; /搜索 virtual bool Insert (K x,E el); /插入 virtual bool Remove (K x,E&el); /删除 friend ostream&operator <<(ostream&out, const dataList<K,E>&OutList); /输出 9assert (i > 0 & i <= CurrentSize); return Element[i-1].key; } virtual void setKey (K x, int i) { //修改第 i个(从1开始)元素的key值 assert (i > 0 & i <= CurrentSize); Element[i-1].key = x; } virtual int SeqSearch (const K x) const; //搜索 virtual bool Insert (K x , E e1); //插入 virtual bool Remove (K x, E& e1); //删除 friend ostream& operator << (ostream& out, const dataList<K, E>& OutList); //输出 9
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有