Ch5 List
Ch5 List
1
ADT Unsorted List Operations
Transformers
■ Create List change state
■ Insert Item
■ Delete Item
Observers
■ FullList
■ Empty List
■ Print List observe state
■ Retrieve Item
2
List Declaration
#include<stdlib.h>
#include<iostream.h>
3
void CreateList(ListType *l){
*l=NULL;
}
6
Retrieving an Item from a list:
7
Deleting an Item from a list:
9
Summary
● Stacks
● Queues
● Lists
10