数据结构课程设计源程序

来源:百度知道 编辑:UC知道 时间:2024/05/11 03:47:07
1.一元多项式的表示及相加
2.迷宫求解:求迷宫从入口到出口的所有路径
3.用队列结构可以模拟现实世界生活中的很多排队现象
4.二叉树构造及遍历
5.城市最短路径问题

希望可以给出能用WIN-TC正常运行的源程序。。。
要用C语言
只要5个里面写3个就可以了 。。。

你可以去http://www1.cmfu.com/index.asp发个帖子 那里高手很多

这个太多了吧,难倒是不难,可哪有时间写这么多啊

太多了 一个两个我还可以帮你写

都写过,挺长的,也不是太难,你去单独的问题搜索一下,就上面的五个问题单独的搜索一下,可以搜到的。

#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>

#define RANGE 12
#define true 1
#define false 0
#define OK 1
#define ERROR 0

typedef int DirectiveType;
typedef int Status;
typedef int bool;
typedef struct
{
int x,y;
}PosType;/*坐标位置类型*/
typedef struct
{
int m,n;
char arr[RANGE][RANGE];
}MazeType;/*迷宫类型*/
typedef struct
{
int step;
PosType seat;
DirectiveType di;