![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
插入修改和删除节点
一代掌门
这个作者很懒,什么都没留下…
展开
-
顺序栈的置空入栈出栈和返回栈顶元素
#include "stdio.h"#include "stdlib.h"#define MAXSIZE 100#define OK 1#define FALSE 0//顺序栈结构体typedef struct stack{int data[MAXSIZE];int top;}*pstack, stack;//置空顺序栈int empty(pst原创 2014-11-01 15:21:32 · 3945 阅读 · 0 评论 -
链栈的置空入栈,出栈,和返回栈顶元素操作
#include "stdio.h"#include "stdlib.h"#define N sizeof(struct stack)typedef struct stack{int data;struct stack *next;}*pstack;//置空链栈pstack empty(pstack top){top = NULL;print原创 2014-11-01 15:18:19 · 2936 阅读 · 0 评论 -
C语言实现链表的头插,尾插,插入,修改,删除和遍历
#include "stdio.h"#include "stdlib.h"#define N sizeof(struct node)//链表结构体typedef struct node{struct node *next;int data;}*pnode;//条件创建链表(头插)pnode create1(){pnode head,p,q;原创 2014-11-01 15:14:58 · 1320 阅读 · 0 评论