





































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the subject of the Data Structures, the key concept and the main points, which are very important in the context of the data structures are listed below:Lists Plus, Circular Linked List, Successor, Element, Circular Linked List, External Pointer, Last Node, Doubly Linked List, Node, Predecessor
Typology: Slides
1 / 77
This page cannot be seen from the preview
Don't miss anything!






































































#include "ItemType.h" // for MAX_ITEMS and ItemType
template
class StackType
{
public:
StackType( ); bool IsEmpty( ) const; bool IsFull( ) const; void Push( ItemType item ); void Pop( ItemType item ); ItemType Top( );
private:
int top; ItemType items[MAX_ITEMS];
};
[MAX_ITEMS-1] . . .
[MAX_ITEMS-1] . . .
template
StackType
{
top = -1;
}
template
void StackType
{
if (IsFull()) throw FullStack(); top++; items[top] = newItem; // STATIC ARRAY IMPLEMENTATION
}