65,211
社区成员
发帖
与我相关
我的任务
分享……
typedef struct node{
char data;
struct node *next;//struct
}Linklist;
……
void insert(){
Linklist *s;
s=(Linklist *)malloc(LEN);
s->data=b;
q=head;
while(q!=p)
q=q->next;
s->next=q->next;
q=s;
}
……
while(q->next != p)
{
q = q->next;
}
q->next = s;
s->next = p;