數據結構——單鏈表的基本

數據結構——單鏈表 鏈式存儲是最常用的動態存儲方法,爲了克服順序表的缺點,可以採用鏈式方式存儲線性表。通常將採用鏈式存儲結構的線性表稱爲線性鏈表。 (寫的不好希望大家多多指教,歡迎指出錯誤) 定義 typedef struct Node {//單鏈表的定義 int data;//數據域 struct Node *next;//指針域 }Node,*LinkList; 對單鏈表進行初始化 Lin
相關文章
相關標籤/搜索