class tree{public: int sign; Main_node *Tree; int maxID; tree(){Tree = NULL; sign = 0; maxID = 0;} ...};
public: void getTree(tree *ID1){ ID_tree = ID1;}
tree m_tree;public: const tree& getTree(){ return m_tree;}//----------где-то вызовconst tree& TR=Form2->getTree();