摘要:
#include #include #include //我这里的头以及尾巴与书上的不一样。int max(int a, int b){ return a > b?a:b;}int min(int a, int b){ return a num_v... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(64)
评论(0)
推荐(0)
摘要:
#include #include #include //我这里的头以及尾巴与书上的不一样。typedef struct ArcNode{ int from, to; struct ArcNode * fnext, *tonext; int ... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(53)
评论(0)
推荐(0)
摘要:
#include#include #include //我这里的头以及尾巴与书上的不一样。typedef struct ArcNode{ int from, to; struct ArcNode * fnext, *tonext; int... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(57)
评论(0)
推荐(0)
摘要:
图的存储结构大赏------数据结构C语言(图) 本次所讲的是常有的四种结构: 邻接矩阵邻接表十字链表邻接多重表 邻接矩阵 概念 两... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(131)
评论(0)
推荐(0)
摘要:
目录 代码 代码 #include #include #include typedef struct ArcNode{ int to; struct ArcNode *next; int w;}ArcNode;typedef ... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(28)
评论(0)
推荐(0)
摘要:
代码 代码 #include #include #include typedef struct ArcNode{ int to; struct ArcNode *next; int w;}ArcNode;typedef struct... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(30)
评论(0)
推荐(0)
摘要:
题解 这道题目说的很诡异,其实没有什么把括号补上。。。。仅仅是先序读入,然后中序输出就行了 代码 #include #include #include typedef struct TreeNode{ char data; struct Tr... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(61)
评论(0)
推荐(0)
摘要:
需要注意的点:在创建二叉树的函数中,如果len1==len2==0,一定要把(*T)置为NULL然后退出循环 #include #include #include typedef struct TreeNode{ char data; str... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(39)
评论(0)
推荐(0)
摘要:
#include #include #include typedef struct TreeNode{ char data; struct TreeNode *LChild, *RChild;}TreeNode;void Create(Tre... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(35)
评论(0)
推荐(0)
摘要:
效果图: 代码: #include #include #include typedef struct { int first;//表示pair对中的第一关键字 int second;}two;typedef struct PQu... 阅读全文
posted @ 2022-07-02 19:00
心坚石穿
阅读(43)
评论(0)
推荐(0)

浙公网安备 33010602011771号