📄 queue.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 + -