10->4->6->15->NULL请按任意键继续..

#include #include #include typedef struct Node { int date; Node *next; }RNode; RNode *init() { int a[4]={10,4,6,15}; RNode *head; head=(struct Node *)malloc(sizeof(struct Node)); head->date=-100; head->next=NULL; //需要补充的代码 return(head) { void display(RNode *lhead) { RNode *p; p =lhead->next; while(p!=NULL) { printf("%d->",p->data); p= p->next;} printf("NULL"); } void main() { RNode *A; A=init(); display(A); system("pause"); }

数据结构对单链表进行数据排序 http://bbs.csdn.net/topics/392201633