C語言實現單向鏈表、雙向鏈表、循環鏈表

1. 單向鏈表node /*建立單向鏈表*/ #include <stdio.h> #include <stdlib.h> #include <malloc.h> struct LNode{ int data; struct LNode * next; }; //該函數建立一個單向鏈表 struct LNode * create(int n){ int i; s
相關文章
相關標籤/搜索