Binary Search Tree

  • Thread starter pleatofthepants
  • Start date
P

pleatofthepants

I have a Binary Search Tree and a function called inOrder

void inOrder (TreeNode<T>*, ostream& out)

which is being called like this: a.inOrder(cout);

But it will not work because the parameters are not the same. The
function call has to be the same but what can I change in the function
to allow this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top