Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make a tree structure modeled like this: first-entered string is a “root”, second one is a ‘parent’, and third one is a ‘child’. I don’t want to create a binary search tree, or anything similar. My tree structure would ideally take strings in account and show everything in the tree.

I am familiar with coding a binary tree, but this one is different for implementing. I just need some ideas to get me started.
Posted
Comments
CPallini 30-Oct-13 10:13am    
So, your three has just three nodes?

1 solution

I suggest creating your own class that will represent binary tree, since there are no built-in classes in .NET for tree structure manipulation.

You can take a look at these threads to find more details:
http://stackoverflow.com/questions/942053/why-is-there-no-treet-class-in-net
http://stackoverflow.com/questions/66893/tree-data-structure-in-c-sharp
 
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