queue.h
来自「c++的标准模板STL操作」· C头文件 代码 · 共 26 行
H
26 行
//queue.h
#ifndef QUEUE_CLASS
#define QUEUE_CLASS
#include <iostream>
#include <cstdlib>
using namespace std;
#ifndef NULL
const int NULL = 0;
#endif // NULL
#include "linkedlist.h"
template <class T>
class Queue
{ private:
T j0;
int m0;
public:
void CreatQueue(int m,T j) //创建
{ j0=j;
m0=m;
LinkList<T> L;
L.CreatPolyn(L,m0,j0);
}
};
//成员函数的实现
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?