#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"); }
你得把你要实现的需求贴出来
你要什么需求呀,要不然怎么补充哦。
您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632