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

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top