资源简介
里面有3个源代码文件,last表示最终版,直接运行即可。

代码片段和文件信息
#include
#include
#include // malloc()等
#include // INT_MAX等
#include // EOF(=^Z或F6)NULL
#include // atoi()52 将字符串转换成一个整数并返回结果
#include // eof()
#include // floor()ceil()abs()
#include // exit()
#include // coutcin
// 函数结果状态代码
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
#define N 12
typedef int Status; // Status是函数的类型其值是函数结果状态代码,如OK等
typedef int Boolean; // Boolean是布尔类型其值是TRUE或FALSE
#define MAX_NAME 3
#define MAX_GRADE 1
/* 顶点字符串的最大长度*/
#define MAXCLASS 100
int Z=0;
int X=0;
int xqzsq=1xfsx;
typedef int InfoType;
typedef char VertexType[MAX_NAME]; /* 字符串类型*/
/* 图的邻接表存储表示*/
#define MAX_VERTEX_NUM 100
typedef enum{DG}GraphKind; /* {有向图有向网无向图无向网} */
typedef struct ArcNode
{
int adjvex; /* 该弧所指向的顶点的位置*/
struct ArcNode *nextarc; /* 指向下一条弧的指针*/
InfoType *info; /* 网的权值指针)*/
}ArcNode; /* 表结点*/
typedef struct
{
VertexType data; /* 顶点信息*/
ArcNode *firstarc; /* 第一个表结点的地址指向第一条依附该顶点的弧的指针*/
}VNodeAdjList[MAX_VERTEX_NUM]; /* 头结点*/
typedef struct
{
AdjList verticesverticestwo;
int vexnumarcnum; /* 图的当前顶点数和弧数*/
int kind; /* 图的种类标志*/
}ALGraph;
struct Name
{
char c[20];
char n[20];
};
/*提示菜单*/
void output()
{
printf(“\t\t 教学计划编制菜单 \n\n“);
printf(“\t\t课程代号(3位) 课程名称 |先修课程 \n“);
printf(“\t\tc01 程序设计基础 | 无 \n“);
printf(“\t\tc02 离散数学 | c01 \n“);
printf(“\t\tc03 数据结构 | c01c02 \n“);
printf(“\t\tc04 汇编语音 | c01 \n“);
printf(“\t\tc05 高级语音程序设计 | c03c04 \n“);
printf(“\t\tc06 计算机原理 | c11 \n“);
printf(“\t\tc07 编译原理 | c03c05 \n“);
printf(“\t\tc08 操作系统 | c03c06 \n“);
printf(“\t\tc09 高等数学 | 无 \n“);
printf(“\t\tc10 线性代数 | c09 \n“);
printf(“\t\tc11 普通物理 | c09 \n“);
printf(“\t\tc12 数值分析 | c01c09c10 \n“);
printf(“\t\t 请按下任意键后按下回车键继续...“);
getchar();
getchar();
}
void puanduan(VertexType strstruct Name name[])
{
if(strcmp(strname[0].c)==0)
printf(“程序设计基础\n“);
if(strcmp(strname[1].c)==0)
printf(“离散数学\n“);
if(strcmp(strname[2].c)==0)
printf(“数据结构\n“);
if(strcmp(strname[3].c)==0)
printf(“汇编语音\n“);
if(strcmp(strname[4].c)==0)
printf(“高级语音程序设计\n“);
if(strcmp(strname[5].c)==0)
printf(“计算机原理\n“);
if(strcmp(strname[6].c)==0)
printf(“编译原理\n“);
if(strcmp(strname[7].c)==0)
printf(“操作系统\n“);
if(strcmp(strname[8].c)==0)
printf(“高等数学\n“);
if(strcmp(strname[9].c)==0)
printf(“线性代数\n“
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13317 2011-12-22 20:27 数据结构_排课系统\gyqlast.cpp
文件 14464 2011-12-25 16:19 数据结构_排课系统\ghz.cpp
文件 13650 2011-12-23 19:33 数据结构_排课系统\gyqgai.cpp
目录 0 2012-10-07 23:00 数据结构_排课系统
----------- --------- ---------- ----- ----
41431 4
相关资源
- 数据结构年终考题范围和答案 耿国华
- 数据结构 朱战力 习题解答 数据结构
- 数据结构课程设计 6 1 彩票系统
- 教学计划编制系统
- 大数(链表、数组)实现
- MP3文件ID3v2ID3v2APEv2标签读取
- 课程作业:模拟仓库管理系统
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- 航空订票系统_数据结构课程设计
- 多项式求和(数据结构C 版)
- 尚观培训linux董亮老师关于数据结构的
- 数据结构 知识点总结
- 高校排课系统设计与实现
- 华南理工大学数据结构复习提纲二
- 华南理工大学数据结构复习提纲一
- 数据结构用C 写的停车场系统源代码
- 一个简单实用个人日记管理系统
- 带时间温度显示的室内灯光控制系统
- 数据结构(河北科技大学)
- 数据结构考前习题 清华大学出版社
- 数据结构课件(北邮)
- 数据结构实验 基于栈的表达式求值
- 数据结构课程设计——图书管理系统
- 成绩管理系统(数据结构)
- FIR低通滤波器 ccs运行环境
- 数据结构-最小通信网问题
- 数据结构课程设计同学通讯录系统
- 基于遗传算法的排课系统
- 数据结构课程设计 公园导游图
评论
共有 条评论