sortedlisthasa.h
来自「Data Abstraction & Problem Solving with 」· C头文件 代码 · 共 26 行
H
26 行
#include "List.h"class SortedList{public:// constructors and destructor: SortedList(); SortedList(const SortedList& sList); virtual ~SortedList();// sorted List operations: virtual bool sortedIsEmpty() const; virtual int sortedGetLength() const; virtual void sortedInsert(ListItemType newItem) throw(ListException); virtual void sortedRemove(ListItemType anItem) throw(ListException); virtual void sortedRetrieve(int index, ListItemType anItem) const throw(ListIndexOutOfRangeException); virtual int locatePosition(ListItemType anItem, bool& isPresent);private: List aList;}; // end class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?