- 博客(5)
- 收藏
- 关注
原创 数据结构 利用链栈实现计算器
话不多说,直接上代码,已在DEV C++等编译器上实现我知道你会点赞的!!!运行部分,直接输入表达式即可得出结果#include<stdio.h>#include<stdlib.h>char opt[128];typedef struct Stacknode1{ //定义链栈结点和头指针 int num; struct Stacknode*next;}stacknode1,*linkstack_numnode;typedef struct{
2022-03-10 22:40:02
642
原创 数据结构课程设计 最小生成树,拓扑排序以及最短路径
通信网络的架设问题【问题描述】若要在n(≥10)个城市之间建设通信网络,只需要架设n-1条线路即可,如何以最低的经济代价建设这个通信网,是一个网的最小生成树问题。【基本要求】(1)利用二种方法(Prim算法和克鲁斯卡尔(Kruskual)生成网中的最小生成树。(2)求出任意两个城市之间通信的最短距离。(3)将n个城市设计为一个DAG图,求出一组拓扑排序序列和关键路径。#include<stdio.h>#include<malloc.h>#define
2022-03-10 22:26:07
1490
3
原创 C语言 数据结构实验 ----递归创建二叉树以及完成遍历等相关操作
话不多说,直接上代码(在DEV C++等编译器上可通过)#include<stdio.h>#include<malloc.h>#include<math.h>typedef struct tree{ int data; struct tree* lchild; struct tree* rchild; } tree ,*bittree; struct tree* creat() //创建二叉树 { int data; bittree
2022-03-09 15:48:14
786
原创 C语言大作业 商品库存管理系统
#include <stdio.h>#include <malloc.h>#include<conio.h >#include<stdlib.h> struct book { int bookcode; char bookname[8]; char username[8]; int fine; int day; int sumfine; struct book* next; struct book* prior; };stru.
2022-03-09 15:30:33
9223
18
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人