Binary Search Tree

Discussion in 'C++' started by pleatofthepants, May 5, 2008.

  1. 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?
     
    pleatofthepants, May 5, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,242
  2. sharan
    Replies:
    4
    Views:
    725
    CBFalconer
    Oct 30, 2007
  3. sharan
    Replies:
    2
    Views:
    869
    SM Ryan
    Oct 31, 2007
  4. sharan
    Replies:
    1
    Views:
    717
    CBFalconer
    Oct 30, 2007
  5. Bogdan

    Binary tree search vs Binary search

    Bogdan, Oct 18, 2010, in forum: C Programming
    Replies:
    22
    Views:
    3,239
    Michael Angelo Ravera
    Oct 21, 2010
Loading...

Share This Page