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

📄 jcsque.h

📁 C++编写的词组匹配的小程序
💻 H
字号:
// JCSQue.h Begin
/* Jon Martin:This is a queue of pointers to TREENODE.This is a basic circular queue structure which acts as a helper to the main() function of the program in order to solve for the shortest path. */

#ifndef JCSQUE_H
#define JCSQUE_H
#include <iostream.h>
#include <fstream.h>
#include <string.h>
#include "JBSTree.h"
typedef TREENODE *QUENODE;
class JCSQue
{
public:	
    JCSQue();    
	JCSQue(int n);
	JCSQue(const JCSQue& anotherQue);	// Copy constructor	
	~JCSQue();
    void MakeEmpty();    
    bool IsFull() const;    
    bool IsEmpty() const;
	void enqueue(QUENODE a);
	void dequeue(QUENODE& a);
	void operator =(const JCSQue& originalQue);
private:	
	int MAX_ITEMS;
    int front, rear;    
	QUENODE *items;  // array of pointers to TREENODE 
};
#endif

⌨️ 快捷键说明

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