
datastructure
_Raymond_
尽量不要私信,直接邮件联系我 <santa.cs@qq.com>
展开
-
数据结构 邻接矩阵深度/广度遍历 图
// 8.1 以邻接矩阵作为存储结构/*****************************//* 图和函数定义 *//*****************************/#include"stdio.h"#include"stdlib.h"#define MaxVertexNum 100 //定义最大顶点数typedef struc...原创 2020-04-26 10:01:50 · 552 阅读 · 0 评论 -
数据结构 邻接链表方式存储/广度遍历/深度遍历 图
// 8.2 以邻接链表作为存储结构/*****************************//* 图和函数定义 *//*****************************/// #include "stdio.h"// #include "stdlib.h"//c++ 的queue#include <queue>#include ...原创 2020-04-26 09:58:58 · 519 阅读 · 0 评论 -
数据结构 二叉树 层次遍历/先序遍历/中序遍历/后序遍历/深度/叶节点数
/*****************************//* 二叉树和函数定义 *//*****************************/#include"stdio.h"#include"stdlib.h"#include"string.h"#define Max 20 //结点的最大个数typedef struct node{ ...原创 2020-04-26 09:55:38 · 327 阅读 · 0 评论 -
数据结构 链表操作-头插法/尾插法/查找/删除/打印/新增 结点
/*****************************//* 链表和函数定义 *//*****************************/#include"stdio.h"#include"string.h"#include"stdlib.h"#include"ctype.h"typedef struct node //定义结点{ cha...原创 2020-04-26 09:53:03 · 474 阅读 · 0 评论