下面是将键值为X的结点插入到二叉排序树中的算法,请在划线处填上适当的内容。
typedef struct node *pnode
struct node
{ int key;
pnode left,right;
}
void searchinsert(int x; pnode t);
//t为二叉排序树根结点的指针//
{ if(
1
)
{ p=malloc(size); p->key=x; p->left=null; p->right=null; t=p;}
else if (x