store value in tree

Aug 21, 2015 at 6:12pm
i would like to know how to store data in tree. Much appreciated of seniors help here. Thanks.

Aug 21, 2015 at 7:25pm
That's pretty vague.

1
2
 
  int tree = 1;  // value 1 stored in tree 


Not what you wanted? Did you mean a Binary Search Tree?
There are lots of examples of Binary Search Trees on this forum that can be found with a simple search.
http://www.cplusplus.com/forum/general/1551/
http://www.cplusplus.com/forum/general/11408/
http://www.cplusplus.com/forum/general/166187/
http://www.cplusplus.com/forum/beginner/164299/
http://www.cplusplus.com/forum/general/104977/
And many more. Just enter "BINARY SEARCH TREE" in the search box at the top of the page.



Aug 22, 2015 at 4:46pm
AbstractioAnon


Thank you my friend for the links you have given to me. Much appreciated.
Topic archived. No new replies allowed.