- 博客(4)
- 收藏
- 关注
原创 Floyd算法源码
思路什么的应该都清楚,直接上源码(VS上以调试) 此算法用的是有向网结构存储 #include<iostream> using namespace std; const int MAX_VERtEX_NUM = 20; const int OK = 1; const int ERROR = -1; const int overflow = -2; const int N_infinity = 65535; typedef int VRType; //表示顶点之间的关系的变量类型 typede
2020-05-11 10:15:47 260
原创 串的块链存储结构(待改,欢迎指正)
注:主函数中的操作和参数是直接以实参的形式放在了调用的函数中 "加油站"指的是解决 从头指针一直扫描到当前所需要的指针的繁杂问题,即如设置加油站一样在串中设置一些特定的指示性指针。(下图中的程序未用此方法) #include<iostream> #include<cstdio> using namespace std; const int OK = 1; const in...
2020-04-05 18:16:18 272
翻译 队列的应用--杨辉三角形
#include<iostream> using namespace std; const int MAXQSIZE = 100; const int OK = 1; const int ERROR = 0; const int overflow = -2; const int TRUE = 1; const int FALSE = 0; typedef int Status; ...
2020-04-02 21:51:08 335
原创 栈的应用-行编辑(线性存储)
#include<iostream.> using namespace std; const int OK = 1; const int overflow = -2; const int TRUE = 1; const int FALSE = 0; const int ERROR = -1; const int MAX_STACK_SIZE = 100; const int MAXLE...
2020-04-02 14:42:50 116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人