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

📄 queue.cpp

📁 JICHERNG继承的实现
💻 CPP
字号:
// Queue.cpp: implementation of the Queue class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Queue.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Queue::Queue()
{

}

Queue::~Queue()
{

}

void Queue::EnterQueque(int newData)
{
	putTail(newData);
}

int Queue::PopQueue()
{
	return this->getHead();
}

int Queue::GetLength()
{
	return this->getElemCount();
}

void Queue::printQueue()
{
	cout<<"Queue head-->";
	list<int>::iterator j;
	for(j=dataLinkHead;j!=dataLinkTail;j++)
	{
		cout<<*j<<" : ";
	}
	cout<<endl;
	
}

⌨️ 快捷键说明

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