?? deque.cpp
字號:
/*------------------------------------------------------------------------*/
/* */
/* DEQUE.CPP */
/* */
/* Copyright Borland International 1991 */
/* All Rights Reserved */
/* */
/*------------------------------------------------------------------------*/
#if !defined( __DEQUE_H )
#include <Deque.h>
#endif // __DEQUE_H
#ifndef __IOSTREAM_H
#include <iostream.h>
#endif
Object& Deque::getLeft()
{
Object& temp = theDeque.peekAtHead();
if( temp != NOOBJECT )
{
theDeque.detachFromHead( temp );
itemsInContainer--;
}
return temp;
}
Object& Deque::getRight()
{
Object& temp = theDeque.peekAtTail();
if( temp != NOOBJECT )
{
theDeque.detachFromTail( temp );
itemsInContainer--;
}
return temp;
}
ContainerIterator& Deque::initIterator() const
{
return *((ContainerIterator *)new DoubleListIterator(this->theDeque));
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -