c語言實現數據結構中的鏈表源代碼

#include <stdio.h> #include <stdlib.h> typedef struct LNode *List; struct LNode { int data; List next; }; struct LNode L; List InitList(List PtrL) { PtrL = (List) malloc(sizeof(L)); PtrL->next =
相關文章
相關標籤/搜索