CIS 200 Code Library (Maxim)
Object-Oriented Programming
figure.h - class declaration for union version of figure
figure.cpp - class implementation for union version of figure
figfamil.h - class declaration for figure using inheritance
figfamil.cpp - class implementation for figure using inheritance
figfam2.h - class declaration for figure using virtual methods
figfam2.cpp - class implementation for figure using virtual methods
vector.h - template definition for vector class (Turbo C++, gcc, g++ version)
Vector.h - template definition for vector class (Visual C++ 6.0 version)
TESTVEC.CPP - test program using vector class (works on all C++ compilers)
convert.cpp - typecasting example using constructors
Array-based list example
entry.h - class declaration for list element
entry.cpp - class implementation for list element
list.h - class declarartion for array-based list
list.cpp - class implementation for array-based list
Stacks
stack.h - class declaration for an array-based stack
stack.cpp - class implementation for an array-based stack
Queues
queue.h - class declaration for an circular array-based queue
queue.cpp - class implementation for an circular array-based queue
priority.h - class declaration for an array-based priority queue
priority.cpp - class implementation for an array-based priority queue
Linked Lists
listdata.h - class declaration for an list element
listdata.cpp - class implementation for a list element
linkist.h - class declaration for a singly linked list
linklist.cpp - class implementation for a singly linked list
Linked Queues
linkque.h - class declaration for an linked list queue
linkque.cpp - class implementation for linked list queue