queue.h
来自「操作系统里面的进程调度」· C头文件 代码 · 共 35 行
H
35 行
// Queue.h: interface for the Queue class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_QUEUE_H__C8948B70_982D_4E4B_908B_0025296226D5__INCLUDED_)
#define AFX_QUEUE_H__C8948B70_982D_4E4B_908B_0025296226D5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "programe.h"
class Queue
{
public:
Queue(); //队列构造函数
Queue(int,int);
virtual ~Queue();
protected:
programe *front;
programe *last; //队列的头 尾
int corr_len; //队列的元素的个数
int ShiJianPian;
public:
int QuNumber;
int getSJPian();
bool isEmpty();
int EnQueue(programe*); //入队列
programe* const DeQueue(); //出队列并从队列中删除
int const get_corr(); //取得队列元素的个数
//friend class container<T>;
};
#endif // !defined(AFX_QUEUE_H__C8948B70_982D_4E4B_908B_0025296226D5__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?