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
相关文章
相关标签/搜索