链表
tianlong_hust
这个作者很懒,什么都没留下…
展开
-
c语言创建链表
#include #include typedef struct Node{ int data; struct Node *next; }No; int main() { No *head; //头指针 int array[10]={0,1,2,3,4,5,6,7,8,9}; head=(No*)malloc(sizeo原创 2013-07-10 16:46:09 · 762 阅读 · 0 评论 -
C创建链表(二)
#include #include typedef struct Node{ int data; struct Node *next; }No; int main() { No *head; //头指针 head=(No*)malloc(sizeof(No)); No *p=head; int e,i;原创 2013-07-10 21:58:04 · 525 阅读 · 0 评论 -
c语言 链表 删除
#include #include typedef struct Node{ int data; struct Node *next; }No; int Add(No *head,int n); int Delect(No *head,int n); int main() { No *head; //头指针 int array[1原创 2013-07-20 22:01:31 · 863 阅读 · 0 评论 -
c语言 链表插入
#include #include typedef struct Node{ int data; struct Node *next; }No; int Add(No *head,int n); int main() { No *head; //头指针 int array[10]={0,1,2,3,4,5,6,7,8,9};原创 2013-07-20 21:15:03 · 889 阅读 · 0 评论