Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I wana represent my data from database table in the format of a binary tree like as Under:

                            A


            B                             C


    D               E                F           G



H      I       J         K       L      M    N      O


Data in My Table is Like This :


Uid         ParentId
a           ----
b           a
c           a
d           b
e           b
f           c
g           c
h           d
i           d
j           e
k           e
l           f
m           f
n           g
o           g


and So On............




Please give me an Idea to represent the Data in The Above Graphical format.


Thanks in Advance.
Posted
Updated 25-May-17 0:28am
v2

refer the "Let us C" Book of YASHWANT kANETKAR IN WHICH c Language code is given for this tree
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900