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

📄 queue.h

📁 经典的着色问题
💻 H
字号:
// queue.h: interface for the queue class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_QUEUE_H__65419B37_3DBD_4011_863C_B8C75464D26E__INCLUDED_)
#define AFX_QUEUE_H__65419B37_3DBD_4011_863C_B8C75464D26E__INCLUDED_
#include"Graph.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
	
class queue  
{
public:
	int *vec;
	int front;
	int rear;
	int maxsize;
public:
	queue(int size);
	virtual ~queue();
	void inqueue(int x);
	int del();
	int isempty()
	{if(front==rear)return 1;
	else return 0;
	}
};

#endif // !defined(AFX_QUEUE_H__65419B37_3DBD_4011_863C_B8C75464D26E__INCLUDED_)

⌨️ 快捷键说明

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