|
typedef struct st {
int date;
struct st *next;
} ST;
ST* MOVE_ST(ST* head,int key)
{
ST* p,q;
p=head;
if (p==NULL) return head;
while (p!=NULL) {
if (p->next->date==key) {
q=p->next;
p->next=p->next->next;
free(q);
}
p=p->next;
}
return head;
}
警告(line 7):你定义的q不是指针。 |
|