store value in tree

i would like to know how to store data in tree. Much appreciated of seniors help here. Thanks.

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.



AbstractioAnon


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