不能将xxx类型的值分配到xxx类型的实体,麻烦大佬能帮我看看,我自己怎么看都觉的没问题
#include <iostream>using namespace std;
typedef struct
{
int x;
struct QNode *next;
}QNode, *Queueptr;
typedef struct
{
Queueptr rear;
}LinkQueue;
int main()
{
return 0;
}
void InitLinkQueue(LinkQueue &Q)
{
Q.rear = new QNode;
Q.rear->next = Q.rear; //这里报错 :不能将 "Queueptr" 类型的值分配到 "QNode *" 类型的实体
}

