这个链表为什么会段错误
temp->next = head;return head;
}
int main()
{
struct student *head = NULL;
struct student *q = NULL;
q = add(head,23,"wang");
while(q != NULL)
printf("%s %d",q->name,q->age);
}
2012-12-14 21:27
2012-12-14 21:28
2012-12-14 21:58