i found the caouse of problem it was the follow
int the tree.cpp i made the changes:
tree::tree(PTR t1)
{
PTR t;
t->data=t1->data;
t->left=t1->left;
t->right=t1->right;
}
and now it is ok
:P:P:P:P:P
but the next thing is:
void tree::preorder_ traversal(PTR t)
{
if(t!=NULL)
{
printf("%d",t->data);
preorder_traver sal(t->left);
preorder_traver sal(t->right);
}
}
How can i take the results of the function into a Edit??????
in optical interface?
int the tree.cpp i made the changes:
tree::tree(PTR t1)
{
PTR t;
t->data=t1->data;
t->left=t1->left;
t->right=t1->right;
}
and now it is ok
:P:P:P:P:P
but the next thing is:
void tree::preorder_ traversal(PTR t)
{
if(t!=NULL)
{
printf("%d",t->data);
preorder_traver sal(t->left);
preorder_traver sal(t->right);
}
}
How can i take the results of the function into a Edit??????
in optical interface?
Comment