I am having problems with traversing a parce tree.
I need to do an in order traversal recursively.
Here's the class's private section...
template <class data>
class BinaryTree
{
private:
struct tNode
{
data info;
tNode *left;
tNode *right;
};
tNode *root;
public:
};
I'll be calling inOrderTraversal() from main so I'll need the ability to pass it a tNode pointer, but the tNode struct has to be in the private section of the class. How can I do this? However, this is for a project and I don't want the answer. Just hints please! Thanks! (I have a little integrity)
P.S. if you need more info let me know