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. Advertisements

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. Ramkumar Menon

    B+ Tree versus Ternary Search Tree

    Ramkumar Menon, Aug 16, 2005, in forum: Java
    Replies:
    2
    Views:
    1,848
    Roedy Green
    Aug 16, 2005
  2. Ramkumar Menon

    B+ Tree versus Ternary Search Tree

    Ramkumar Menon, Aug 16, 2005, in forum: Java
    Replies:
    0
    Views:
    601
    Ramkumar Menon
    Aug 16, 2005
  3. Ramkumar Menon

    B+ Tree versus Ternary Search Tree

    Ramkumar Menon, Aug 16, 2005, in forum: Java
    Replies:
    1
    Views:
    609
    Andrew Thompson
    Aug 16, 2005
  4. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,588
  5. sharan
    Replies:
    4
    Views:
    881
    CBFalconer
    Oct 30, 2007
  6. sharan
    Replies:
    2
    Views:
    1,058
    SM Ryan
    Oct 31, 2007
  7. sharan
    Replies:
    1
    Views:
    844
    CBFalconer
    Oct 30, 2007
  8. Bogdan

    Binary tree search vs Binary search

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