struct node

{ ElemType data;

搜题
王老师:19139051760(拨打)
题目  更新时间:2024/11/10

以下函数为链队列的入队操作,x为要入队的结点的数据域的值,front、rear分别链队列的队头、队尾指针

struct node

{ ElemType data;

struct node *next;

};

struct node *front,*rear;

void InQueue(ElemType x)

{

struct node *p;

p= (struct node*) malloc __(1)__;

p->data=x;

p->next=NULL;

__(2)__;

rear= __(3)__;

}选项3(matching)
.p

王老师:19139051760(拨打)