Due Date: Midnight, Tuesday, November 21
(NOTE: NO LATE HOMEWORKS WILL BE ACCEPTED.)
Assignment:
template
class definition for a binary tree class called BinTree
. The class defintion must contain the following
operations:
Note: Don't get confused by the multiple outputs from the find method.
Remember that outputs can be returned via the method's parameter list as
well as its return
statement.
BinTree
class definition in a complete C++ header file called BinTree.H
.
anyMethod
that has no
parameters and returns an integer, the stub would look like:
Place these methods in a file called BinTree.C
.
template
class definition for a binary tree node class called BTNode
. The class defintion must contain the following
operations:
Make the BinTree
class a friend
of the
BTNode
class.
BTNode
class definition in a complete C++ header file called BTNode.H
.
BTNode.C
.
BinTree
. Place the main function in a file called
main.C
.
hw4
.
Homework Submission
Submit your makefile and all five source code files using the usual
submit
process.
Last Modified: