c++: checking if a tree isFull?

Sharky Forums


Results 1 to 2 of 2

Thread: c++: checking if a tree isFull?

  1. #1
    Catfish turbo_h4's Avatar
    Join Date
    Apr 2003
    Posts
    161

    c++: checking if a tree isFull?

    making a binary search tree database of a bunch of objects. How do I determine when the tree is actually full and I cannot add more leaves without the program crashing?
    ::You won't know your limit until you go beyond it...::

  2. #2
    Catfish gameboy1234's Avatar
    Join Date
    Aug 2002
    Posts
    238
    I dunno, I guess it depends which library you are using.

    If doing your own, it's when the new operator returns a null pointer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •