- 博客(7)
- 收藏
- 关注
原创 单链表的构建、遍历、带头结点与不带头结点的插入
/** * @author shuang * @for kun */#include "stdio.h"#include "stdlib.h"#include "stdbool.h"typedef int ElemType;typedef struct LNode { ElemType val; struct LNode *next;} LNode, *LinkList;void construct_link_list(LinkList *list, bool w
2021-10-27 11:25:49
185
原创 邻接矩阵与邻接表的构建与输出
邻接矩阵与邻接表的构建与输出文章目录邻接矩阵与邻接表的构建与输出运行结果#include <cstdio>#include <cstring>#include <cstdlib>#define MAXV 6#define INF 0x3f3f3f3fusing namespace std;typedef int InfoType;//邻...
2019-05-16 23:16:12
1859
原创 根据先序序列和中序序列,建出二叉树,并求出后序序列
根据先序序列和中序序列,建出二叉树,并求出后序序列文章目录根据先序序列和中序序列,建出二叉树,并求出后序序列题干手动操作step 1.step 2.step 3.step 4.done.图形表示(没错图是网上的诶嘿 ;p 侵删哟)答案代码实现运行结果题干前序遍历: GDAFEMHZ中序遍历: ADEFGHMZ构建对应二叉树,并输出后序序列手动操作s...
2019-05-15 17:13:46
2277
原创 CPP实现 矩阵基本运算
#pragma once#include<iostream>#include<iomanip>#include<cstring>using std::cout;using std::endl;using std::cin;using std::setw;using std::right;using std::memset;class ...
2018-12-20 19:51:34
2382
原创 二叉树的三种遍历方式及求节点数、叶子数、深度
"pretreatment.h" 严版教材预处理格式,以后不再赘述//函数结果状态代码#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2//Status是函数的类型,其值是函数结果状态代码typedef int Status;...
2018-11-12 23:07:55
1459
原创 别人编程我不气,气出病来无人替
hello, blog!//蛋疼#include<iostream>using namespace std;int main() { cout<<"hello, blog"<<endl; return 0;}import static java.lang.System.*;class EatingShit { pu...
2018-11-07 22:49:41
217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人