建立一個雙向鏈表或雙向循環鏈表

#include <stdio.h> #include <stdlib.h> #define len sizeof(struct list) struct list { int x; struct list *pre,*next; }; struct list * create()//建立鏈表並返回鏈表頭的指針 { struct list *p,*p1,*head; head=p=(str
相關文章
相關標籤/搜索