Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
for eg.

1
/ \
2 3


in this when first user added it is the main node
then next second user be the left child node of main node and third user right child of the main node like this....
Posted

Hi,
A quick start would be to consider these scenario steps:
- each node can be a row a table
- each node can hava a unique integer "name" to be used as reference
- each node has of course its value
- each node will refer to it's parent
- adding a node means adding a row in the table
- when adding a node it is necessary to say to which parent it is linked by filling out its parent number (link)
- operations on nodes need to be defined, for example Add

etc

Hope this will point you in the right direction,
Cheers,
 
Share this answer
 
Have a look at my past answer[^].
 
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