freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)(c)課程設(shè)計(jì)報(bào)告--教學(xué)計(jì)劃編制問(wèn)題(編輯修改稿)

2025-05-08 22:48 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 原理 4 1007 編譯原理 4 05,03 08 操作系統(tǒng) 4 03,0609 高等數(shù)學(xué) 7 無(wú) 10 普通物理 5 0911 線性代數(shù) 2 0912 數(shù)值分析 3 09,11,01七 、附錄:程序設(shè)計(jì)源代碼includeiostreamincludestringincludecstdioincludecstdlibusing namespace std。define null 0define MAX_COURSE_NUM 100 //最大課程個(gè)數(shù)typedef struct { char c[3]。 }cid。 //課程號(hào)typedef struct Course { cid id[3]。 char name[30]。 float xf。 }Course。 //課程typedef struct PreCourse { int adjvex。 struct PreCourse *nextarc。 }PreCourse。 //先修的課程節(jié)點(diǎn)typedef struct{ Course course。 PreCourse *firstarc。 }CourseNode。 //課程節(jié)點(diǎn)typedef struct{ CourseNode courses[MAX_COURSE_NUM]。 //鄰接表 int xqs。 int num。 float xfsx。 }AlGraph。 //課程圖typedef struct { int data[MAX_COURSE_NUM]。 int f,r。 }queue。int WhetherCricle=0。 int jxq。 class Queue{public: void queue_init(queue *q)。 void queue_in(queue *q,int x)。 int queue_out(queue *q)。 int queue_empty(queue *q)。}Queue。void Queue::queue_init(queue *q) //隊(duì)初始化{ qf=qr=0。}void Queue::queue_in(queue *q,int x) //入隊(duì){ if((qr+1)%MAX_COURSE_NUM==qf) { cout隊(duì)滿\tendl。 exit(0)。 } qr=(qr+1)%MAX_COURSE_NUM。 qdata[qr]=x。}int Queue::queue_out(queue *q) //出隊(duì){ if(qf==qr) { cout隊(duì)空\(chéng)tendl。 exit(0)。 } qf=(qf+1)%MAX_COURSE_NUM。 return qdata[qf]。}int Queue::queue_empty(queue *q) //隊(duì)判空 1為空{(diào) if(qf==qr) return 1。 else return 0。}class Graph{public: AlGraph input()。 void output(AlGraph CGraph)。 void creatpre(AlGraph *CGraph)。}Graph。void Graph::creatpre(AlGraph *CGraph) //建立先修關(guān)系{ system(cls)。 int choice。 int i,n。 int j。 PreCourse *p,*q。 coutendl建立先修關(guān)系:\tendl。 coutendl輸入的每一門(mén)課程號(hào)的編號(hào):\tendl。 for(i=0。iCGraphnum。i++) { if(i%4==0) coutendl。 cout(i+1)。 //輸入課程的編號(hào) printf(%s\t,CGraphcourses[i].)。 } coutendl。 cout\n請(qǐng)根據(jù)以上的編號(hào),輸入每一門(mén)課程的先修課程號(hào)的編號(hào)(輸入0 表示沒(méi)有或結(jié)束):\tendl。 for(i=0。iCGraphnum。i++) { printf(%s的先修課程:,CGraphcourse
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1