⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queue.h

📁 数据结构课程设计用C++实现图的遍历等!
💻 H
字号:
#include<iostream.h>
typedef int DataType;        //定义数据类型
class Queue
{
private:
 DataType front,rear;
 int *Vec;               //对列
 int MaxSize;            //对列最大长度
public:
 Queue(int size);          //构造函数
 ~Queue();               //析构函数
 void EnQueue(DataType x);      //入队函数
 DataType DelQueue();             //出对函数
 DataType GetFront();           //获取对头函数
 bool IsEmpty();               //判断对列是否为空
 void Clear();                 //清对空
};

⌨️ 快捷键说明

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