建立简单的静态链表
#includestruct student{int num;float score;struct student *next;};int main()struct student a,b,c,*head,*p;a.num = 10101; a.score = 89.5;b.num = 10103; b.score = 90;c.num = 10107; c.score = 85;head = &a;a.next = &b;b.next = &c;c.next = NULL;p = hea
原创
2022-10-24 20:59:06 ·
465 阅读 ·
2 评论