c08p414b.txt
来自「Data Abstraction & Problem Solving with 」· 文本 代码 · 共 24 行
TXT
24 行
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 + -
显示快捷键?