📄 extendedlinearlist.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -