- 博客(5)
- 收藏
- 关注
原创 数据结构课的大作业
数据结构课程的大作业,大致要求是利用树做一个WBS模型并在WBS的基础上利用有向图构建计划制定模型。计划制定模型要求能够检查环,能实现顺排和倒排,工作日历要能跳过周末安排任务,要实现根据自定义的delta值实现关键路径的查找。想着很久也没写过什么了,而且这个代码老师打分了之后也没说对不对,所以分享这个代码也是请大家看看这个代码的不足和改进之处。这个程序用C语言实现的,代码如下:#include <stdio.h>#include <stdlib.h>/*作业数据*/ty
2020-07-31 14:21:51
1500
原创 上数据结构学的一种生产计划图
这个数据结构可以反映项目的开始和完成时间,感觉是数据结构的图的一个比较具体的应用。后面是完整版代码:#include <stdio.h>#include <stdlib.h>/*作业数据*/ typedef struct _data{ int id; char name[20]; int duration; int tes; int tef; int...
2020-04-25 22:28:16
281
2
原创 树
更新一下树的学习笔记首先树不同于二叉树,它可以增加任意多的子节点,更符合我们日常的使用习惯。本文建立的树使用以下结构:存放数据的结构体:typedef struct _data{ int id; char name[20];}data;存放节点的结构体:typedef struct _node{ data *d; struct _node *parent,*first_ch...
2020-04-06 12:29:54
156
原创 二叉树(2)
更新一下非递归方式对二叉树的部分函数,关键是如何实现非递归前序遍历。#include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <string.h>typedef struct _data{ int id; char name[20];}data;typede...
2020-03-21 17:17:16
66
原创 二叉树(1)
完成二叉树部分内容了。#include <stdio.h>#include <stdlib.h>#include <malloc.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */typedef...
2020-03-17 20:04:38
90
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人