问题
填空题
以下运算实现在链队上的入队列,请在______处用适当的语句予以填充。 void EnQueue(QueptrTp*lq,DataType x) { LqueueTp*P;p=(LqueueTp*)malloc(sizeof(LqueueTp));______=x;p—>next=NULL;(1q—>rear)—>next=______;______; }
答案
参考答案:p—>data P lq—>rear=p