摘要:
#include <iostream> #include <algorithm> #include <cstring> #include <queue> using namespace std; int dir[8][2] = {{-2, -1}, {-2, 1}, {-1, -2}, {-1, 2 阅读全文
#include <iostream> #include <algorithm> #include <cstring> #include <queue> using namespace std; int dir[8][2] = {{-2, -1}, {-2, 1}, {-1, -2}, {-1, 2 阅读全文
posted @ 2022-02-07 20:28
帝宝单推人!
阅读(182)
评论(0)
推荐(0)

##队列实现层序遍历,以及改为堆栈先序遍历 #include<iostream> using namespace std; typedef int ElemType; typedef struct BinTree { ElemType data; struct BinTree* Left; stru
##递归遍历 #include<iostream> using namespace std; typedef struct BinTree { ElemType data; struct BinTree* Left; struct BinTree* Right; }BinTree; void Pos
##队列的顺序存储 #include<iostream> using namespace std; #define MaxSize 10 #define ERROR 0 #define TRUE 1 typedef int ElemType; typedef struct QNode { ElemT
##顺序储存 #include<iostream> using namespace std; #define MaxSize 10 const ERROR=0; const TRUE=1; typedef int ElemType; typedef struct Snode { ElemType d
##顺序表的链式存储 #include <iostream> using namespace std; typedef int ElemType; typedef struct LinkList { ElemType value; struct LinkList *next; } LinkList;
网课笔记 #include <iostream> using namespace std; typedef int ElemType; typedef struct { ElemType *data; int size; int length; } SqList; bool InitList(SqL
浙公网安备 33010602011771号