Make your own free website on Tripod.com

Data Structure Programming

 

Stacks

 

Figure 1. Stack operation.

CStack<int> intStack;

CStack<float> floatStack;

CStack<userdefined> userStack;

intStack.Push(…)

userStack.Push(…)

 

Singly Linked-List

CSinglyList<int> intList;

CSinglyList<float> floatList;

CSinglyList<userdefined> userList;

intList.Insert(…)

userList.Next(…)

Figure 2. Singly List operation.

 

Doubly Linked-List

CDoublyList<int> intList;

CDoublyList<float> floatList;

CDoublyList<userdefined> userList;

intList.Insert(…)

userList.Next(…)

Figure 3. Doubly List operation.

 

Binary Tree

CTree<int> intList;

CTree<float> floatList;

CTree<userdefined> userList;

intList.Insert(…)

userList.Left(…)

Figure 4. Doubly List operation.