資源簡介
里面有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
評論
共有 條評論