lordhaworth
August 15th, 2008, 04:13 PM
Hey all
Me again, I've only recently been programming with pointers and have realised how useful they can be by improving some old programs using linked lists etc and creating some new programs i never could before.
However, although I understand what it is, im having trouble constructing a tree. Ive searched a fair bit and not really found any tutorials on how to construct a tree - only on how to search them (which isnt very useful when i cant build one).
A lot of tutorials tell you how to build linked lists and then kind of go "this is a tree, you can build it in pretty much the same way" which makes me think itll prob be easy but Im having trouble!
This is in fortran90 again, direction to tutorials or advice would be much appreciated. Using a tree recursively will probably be the next big useful thing for me so Im hoping to get this nailed!
Cheers
Tom
Me again, I've only recently been programming with pointers and have realised how useful they can be by improving some old programs using linked lists etc and creating some new programs i never could before.
However, although I understand what it is, im having trouble constructing a tree. Ive searched a fair bit and not really found any tutorials on how to construct a tree - only on how to search them (which isnt very useful when i cant build one).
A lot of tutorials tell you how to build linked lists and then kind of go "this is a tree, you can build it in pretty much the same way" which makes me think itll prob be easy but Im having trouble!
This is in fortran90 again, direction to tutorials or advice would be much appreciated. Using a tree recursively will probably be the next big useful thing for me so Im hoping to get this nailed!
Cheers
Tom