View Single Post
  #1 (permalink)  
Old 06-23-2008, 02:09 AM
outlaw525 outlaw525 is offline
Newbie
 
Join Date: Jun 2008
Posts: 1
Credits: 0
Rep Power: 0
outlaw525 is on a distinguished road
Question Question: "Binary Tree" only with parent pointer

Hi,

The fuction should work in C.

I need to create a struct for tree with pointer to parent only, without pointers to left & right childs.

The function got two pointers for two childs and printer the shared parent of them.

The function will print the info of the shared parent.

I attached a doc file that show what I want, there is two blue childs that the red parent is the one that the function need to print.

I alse need to know the struct elements.

Sorry for my english.

Thanks alot
Attached Files
File Type: doc example.doc (27.5 KB, 5 views)
Reply With Quote

Sponsored Links