![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
链表的头插尾插
一代掌门
这个作者很懒,什么都没留下…
展开
-
链栈的置空入栈,出栈,和返回栈顶元素操作
#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 · 2929 阅读 · 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 · 1318 阅读 · 0 评论 -
二叉搜索树之字符串的创建和遍历
#include #include using namespace std; //树的结构体 typedef struct node{ char data[20]; struct node *left, *right; }*ptree, pnode; //搜索二叉树的根节点 ptree creategen(char c[]) { ptree t; t =原创 2014-11-25 18:07:37 · 845 阅读 · 0 评论