Search:

Type: Posts; User: azncoolj2000

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,126

    nvm guys i made a stupid mistake... thnxs for the...

    nvm guys i made a stupid mistake... thnxs for the help tho...
  2. Replies
    6
    Views
    1,741

    no errors... but when i try to delete a node in...

    no errors... but when i try to delete a node in the tree, a msg is outputed to the user that the node is deleted with some data printed out to the user... that data that should be printed out doesnt...
  3. Replies
    7
    Views
    1,126

    the tree struct has a long occupancy and the...

    the tree struct has a long occupancy
    and the tnode struct has a long & occupancy which references the tree occupancy. So, how would I decrement the tnode occupancy in a tnode destructor?
  4. Replies
    6
    Views
    1,741

    unsigned long Remove (TNode &...

    unsigned long Remove (TNode<Whatever> & elementTNode,
    TNode<Whatever> *& PointerInParent,
    long fromSHB = FALSE) {

    if(elementTNode.data == data) {...
  5. Replies
    7
    Views
    1,126

    Problem with destructors

    Ok in my tree program, I have to use a reference to occupancy in my tnod struct. So In my destructor



    ~TNode (void) {
    occupancy--;
    delete data;
    }
  6. Replies
    6
    Views
    1,741

    Question about references

    Ok so I am building a tree using c++
    In my remove function
    and I am using a reference (TNode<Whatever> & elementTNode) to point to the deleted data in a node in the tree (TNode<Whatever> *)... So,...
  7. Replies
    5
    Views
    1,144

    sorry, I am confused in what that means... does...

    sorry, I am confused in what that means... does that mean I need to change something in my main? or in my tree constructor?
  8. Replies
    5
    Views
    1,144

    the error when I run the gdb (debug) says that: ...

    the error when I run the gdb (debug) says that:

    warning: Source file is more recent than executable.

    46 occupancy++;

    ...
  9. Replies
    5
    Views
    1,144

    Newb question about tree in c++...

    Hi, I have a problem understanding how to increment the occupancy in my constructor is it looks like dis:



    template <class Whatever>
    struct TNode {
    long balance;
    Whatever data;
    long...
Results 1 to 9 of 9