题目内容
以下函数为链队列的人队操作,x为要入队的结点的数据域的值,front、rear分别是链队列的队头、队尾指针
struct node
{ElemType data;
struct node * next;
};
struct node *front,*rear;
void InQueueCElemType x)
{
struct node * p;
p= (struct node*)________________;
p一>data=x;
p一>next=NULL;
______________________;
rear=_____________;
}
查看答案
搜索结果不匹配?点我反馈
更多问题