datalist.cpp

来自「包含常见的数据结构的类和函数」· C++ 代码 · 共 19 行

CPP
19
字号
#ifndef DATALIST_H#define DATALIST_H#include <iostream.h>template < class Type >class dataList {    private:	Type * Element;	int ArraySize;	void Swap (const int mark1, const int mark2);	int MaxKey (cocnst int low, const int high);    public:	dataList (int size = 10):ArraySize(size),Element(new Type[Size]) {}	~dataList () {delete[] Element; }	void Sort ();	friend ostream& operator << (ostream& outStream, const datalist<Type> & outList);	friend istream& operator << (istream& inStream, const datalist<type> & inList);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?