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

📄 tagseqqueue.cpp

📁 队列,1、 掌握队列的顺序存储结构和“假溢出”的处理方法 2、 设计用标志位解决“假溢出”问题的顺序队列
💻 CPP
字号:
#include<iostream.h>
#include<string.h>
#include<stdlib.h>

typedef char DataType;
const int MaxQueueSize=3;

#include"TagSeqQueue.h"

void main()
{
	TagSeqQueue myQueue;
	char str[]={'A','B','C'};
	myQueue.Append(str[0]);
	myQueue.Append(str[1]);
	myQueue.Append(str[2]);
	cout<<"执行两次出队操作的结果为:"<<endl;
	myQueue.Delete();
	myQueue.Delete();
	cout<<myQueue.GetFront()<<endl;
	cout<<"再执行一次出队操作的结果为:"<<endl;
	myQueue.Delete();
	cout<<myQueue.GetFront()<<endl;

}


⌨️ 快捷键说明

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