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
相關文章
相關標籤/搜索