文件名称:Arraylist 类模版
文件大小:49KB
文件格式:RAR
更新时间:2013-12-02 00:06:13
c++
private:
typedef T ItemType; // int
typedef ItemType* pItemType;
typedef pItemType* ppItemType;
ppItemType items;
// size_t count;
int count;
// Finds the index of the next item in order.
int FindNextIndex(const int start, const SortOrder order) const;
// Swaps the two items at the given indices.
void SwapItems(const int index1, const int index2);
// Copies the parameter list.
void CopyList(const ArrayList& copyArrayList);
// Deletes all allocated memory.
void DeleteList();
// Displays the items in the array, one per line.
friend ostream& operator <<<>(ostream& out, const ArrayList
【文件预览】:
p04-Templates
----p04.docx(52KB)
----~$p04.docx(162B)
----p04.cpp(1KB)
----ArrayList.h(2KB)