C 语言实例4——建立简单的静态链表

为了建立链表 使head指向a节点,a.next指向b节点,b.next指向c节点这就构成了链表关系。 #include<stdio.h> struct Student { int num; float score; struct Student *next; }; int main() { struct Student a,b,c,*head, *p; a
相关文章
相关标签/搜索