这样写应该没有问题了的,这个类体中的函数原型要改一下void binarytree::copy(BinaryTreeNode *&t, BinaryTreeNode *u){if(u){t=new BinaryTreeNode;t->data=u->data;copy(t->LeftChild, u->LeftChild);copy(t->RightChild, u->RightChild);}elset = NULL;}