extendedlinearlist.h
来自「这是数据结构、算法与应用-C++语言描述的代码」· C头文件 代码 · 共 24 行
H
24 行
// abstract class extendedLinearList
// extends linearList by adding functions to clear and append
// all methods are pure virtual functions
#ifndef extendedLinearList_
#define extendedLinearList_
#include <iostream>
#include "linearList.h"
using namespace std;
template<class T>
class extendedLinearList : linearList<T>
{
public:
virtual ~extendedLinearList() {}
virtual void clear() = 0;
// empty the list
virtual void push_back(const T& theElement) = 0;
// insert theElement at end of list
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?