Forum: Object-Pascal / Delphi-Language
Delphi
by sk.Silvia,
14. Apr 2006
thanks for your code maribu, is i understood Clone Clone (Creates based on same value) a new node but not only the node, but it also Clone all his childrens and childrens of their childrens...cool...i will find a great use for it when extracting (cloning a part) subtree... :zwinker: :kiss:
i solded my problems follows
i thought that by using
consturctor PowerCreate(Node:TBinTree);...
Forum: Object-Pascal / Delphi-Language
Delphi
by sk.Silvia,
14. Apr 2006
ok, lets say that t1 has only left childrens and t2 only right childrens, i want marge up t2 to t1.right so t1 is a compleate tree, but t2 stays as before, and by acting with right childrens of t1 i will act only them, not also t2...so better to say, i will insert one tree to another but i will that the inserted tree will stay separate
lets say i have a main tree called t1 with many childrens...
Forum: Object-Pascal / Delphi-Language
Delphi
by sk.Silvia,
14. Apr 2006
hi there i have a problem :
so i have two tree structures New (has value 77 in left upper corner) and BinTree (is the large tree) are declared as standard tree
type TBinTree=class
Value:integer;
Left,Right: TBinTree;
constructor Create(New_Value:integer; New_Left, New_Right:TBinTree); Overload;
constructor PowerCreate(Node:TBinTree); Overload;
...