![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
Kcoren
诗和远方
展开
-
字符串使用总结①
简单的字符串使用原创 2022-03-17 12:05:21 · 439 阅读 · 0 评论 -
数据结构笔记——二叉搜索树的基本方法
二叉搜索树是一种独特的结构,其遍历是按顺序输出元素,基本建立过程是:插入一个值,判断与根结点的元素大小,小于根就进左子树,大于根就进右子树。 实现过程如下: typedef struct node { //树的结点 int data; struct node* left; struct node* right; }*N, treeNode; typedef struct { // 树的根 treeNode * root; }Tree; void insertnode(Tree *tree, in原创 2021-08-27 03:21:30 · 202 阅读 · 0 评论 -
数据结构笔记1 -----链表
单链表(重点学习) **#include “iostream” #include “malloc.h” using namespace std; typedef struct Node { // 单链表的结点定义; int data; struct Node next; }Node,listnode; // 尾插法 (好用) listnode Creat(int a[]) { listnode H; listnode end; H = (listnode)malloc(sizeof(Node)); //原创 2021-07-26 10:49:20 · 65 阅读 · 0 评论