|
Post by gabbie on Mar 17, 2002 14:49:04 GMT -5
i used a vector to hold my nodes... got practically all methods done.. but all of them won't work properly cause i can't recurse a tree properly.. all the counters and crap got me confused.. can someone please explain how i can recurse a tree ? helper methods crap ? blah blah blah.. please.. thanks
|
|
|
Post by magnifiedplaid on Mar 17, 2002 14:54:00 GMT -5
how did you use a vector to hold your nodes if URLTree is only allowed that one instance variable?
|
|
|
Post by gabbie on Mar 17, 2002 14:59:49 GMT -5
i do only have one instance variable.. wat do you mean ??
|
|
|
Post by magnifiedplaid on Mar 17, 2002 15:01:34 GMT -5
where did you declare the vector to hold the nodes?
|
|
|
Post by gabbie on Mar 17, 2002 15:13:55 GMT -5
in my constructor in URLTreeNode
|
|
|
Post by magnifiedplaid on Mar 17, 2002 15:33:02 GMT -5
so then how do the nodes connect to each other, I know that each node has a vector(or list) that holds references to its children, but how can you add nodes or go through them. I'm having to much trouble just getting started.
|
|
|
Post by CooLiBoP on Mar 17, 2002 16:01:34 GMT -5
Your vector/arraylist/linkedlist should contain references to other nodes...thats how you're tree is linked together...
|
|