c中雙向鏈表的簡單使用

#include <stdio.h> #include <stdlib.h> //定義結構體 typedef struct Test{ int data; struct Test *prev; struct Test *next; }T; /* *建立雙向鏈表 */ T *create_linked(){ T *head,*node,*end; //定義頭結點,中間節點和尾節點 i
相關文章
相關標籤/搜索