queue.h

来自「一个类定义的链队列和链表」· C头文件 代码 · 共 37 行

H
37
字号
// Queue.h: interface for the Queue class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_QUEUE_H__0CD62B6C_2E03_48F3_A530_F2C4508B850F__INCLUDED_)
#define AFX_QUEUE_H__0CD62B6C_2E03_48F3_A530_F2C4508B850F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "iostream.h"

typedef struct	LNode{
	int data;
	struct LNode	*next;
}LNode,*Linklist;

typedef Linklist QueuePtr;


class Queue  
{
	QueuePtr front;
	QueuePtr rear;
public:
	int get_queue();
	void delete_queue();
	void output_queue();
	void insert_queue(int);
	Queue();
	virtual ~Queue();

};

#endif // !defined(AFX_QUEUE_H__0CD62B6C_2E03_48F3_A530_F2C4508B850F__INCLUDED_)

⌨️ 快捷键说明

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