Hello
i am trying to build a tree
I have a pointer to a class which represent nodes in the tree
the class' private data consists of a int value, a left pointer, a right pointer and a parent pointer. However when i assign the parent pointer to null like node->parent = NULL the node value itself gets assigned to NULL. so the left and right pointers are also null etc... is they any obvious reason why this should happen? i can post the code if needed...
thanks for your help
jim
i am trying to build a tree
I have a pointer to a class which represent nodes in the tree
the class' private data consists of a int value, a left pointer, a right pointer and a parent pointer. However when i assign the parent pointer to null like node->parent = NULL the node value itself gets assigned to NULL. so the left and right pointers are also null etc... is they any obvious reason why this should happen? i can post the code if needed...
thanks for your help
jim