struct node
{ intdata; //数据域
structnode * next; //指针域
};
typedef struct node NODE;
typedef struct node *PNODE;
void AddNode(PNODE h, int num)
{
PNODEp = h, n;
n= new NODE;
n->data= num;
while(p->next != NULL)
p= p->next; //
p->next= n;
n->next= NULL;
}
是不是就相当于在定义指针的时候就不用加*的意思?PNODE p=h,n 就相当于NODE *p=*h,*n???
追答PNODE就相当于struct node *