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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計(已修改)

2024-10-21 09:54 本頁面
 

【正文】 第一篇:數(shù)據(jù)庫課程設(shè)計數(shù)據(jù)庫課程設(shè)計第一章 引言開發(fā)的意義設(shè)計應用系統(tǒng)的任務(wù)及目標 設(shè)計開發(fā)及運行的軟硬件環(huán)境第二章 系統(tǒng)分析與設(shè)計系統(tǒng)需求分析數(shù)據(jù)庫概念結(jié)構(gòu)設(shè)計 數(shù)據(jù)庫邏輯結(jié)構(gòu)設(shè)計 數(shù)據(jù)庫物理結(jié)構(gòu)設(shè)計 系統(tǒng)總體結(jié)構(gòu)設(shè)計第三章 系統(tǒng)開發(fā)及實現(xiàn)設(shè)計開發(fā)采用的技術(shù)及設(shè)計效果第四章 總結(jié)第二篇:數(shù)據(jù)庫課程設(shè)計需求分析在銀行業(yè)務(wù)模擬中用隨機函數(shù)產(chǎn)生隨機數(shù),求客戶在銀行的平均時間,客戶來到銀行后加入兩個隊列,客戶辦理的業(yè)務(wù)有兩種,一是取款和貸款,二是存款和還款。概要設(shè)計typedef struct service { int num。//客戶號 string type。//到達或離開 int beginTime。int endTime。int money。//正數(shù)為存款,負數(shù)為取款 struct service* next。}service。typedef struct //隊列 { service* head。service* rear。}queue。int total。//初始時銀行現(xiàn)存資金總額 int closeTime。//營業(yè)結(jié)束時間int arriveTime。//兩個到達事件之間的間隔上限 int dealTime。//客戶交易的時間上限 int dealMoney=5000。//交易額上限 int currentTime=0。//當前時間 int totalTime=0。//客戶逗留總時間 int counter=0。//客戶總數(shù) int number=1。//初始客戶序列號 int currentTimeOfDeal=0。int theArriveTime=0。queue eq。//事件隊列 queue fq。//隊列一queue sq。//對列二 //初始化三個隊列 service* temped。int Time。void push(queue amp。q,int a)// 插入元素a為Q的新的隊尾元素 void pop(queue amp。q)// 若隊列不空,出對列函數(shù) service* front(queue amp。q)//返回隊首元素 service* back(queue amp。q)//返回隊尾元素service* searchAndDel(queue amp。q,int m)//在對列中尋找可處理元素 bool state=1。//用于判斷是否有窗口在處理void arrive()//“到達”函數(shù) 隨機產(chǎn)生顧客,進入隊列一產(chǎn)生到達事件 進入事件隊列void putMoney()//存款函數(shù) void getMoney()//取款函數(shù)void findAndDeal()//在對列中尋找可處理元素,對其進行處理 運行環(huán)境Window XP Visual C++ 開發(fā)工具和編程語言Visual C++ C++ 詳細設(shè)計 typedef struct service { int num。//客戶號string type。//到達或離開 int beginTime。int endTime。int money。//正數(shù)為存款,負數(shù)為取款 struct service* next。}service。typedef struct //隊列 { service* head。service* rear。}queue。2.插入一個元素為隊尾元素 void push(queue amp。q,int a){ service* p=new service。pmoney=a。pnext=NULL。if(==NULL)//列隊為空,初始化 { =p。=p。} else //隊列不為空,插入元素a { next=p。=next。} } service* front(queue amp。q)//返回隊首元素 { return 。} service* back(queue amp。q)//返回隊尾元素 { return 。} service* searchAndDel(queue amp。q,int m){ service* sign=。//標記頭節(jié)點 service* p。while(!=NULL){ if(((money)){ p=。=next。//首節(jié)點后移一位,返回原首節(jié)點 return p。} } if(((money))m)//隊首元素不能被處理 {if(==){ } return NULL。else //首節(jié)點移到隊列尾部 { next=。=next。=next。next=NULL。} } if(==sign)//隊列循環(huán)一周時停止 return NULL。} return NULL。} void arrive()//到達“函數(shù) 隨機產(chǎn)生顧客,進入隊列一產(chǎn)生到達事件 進入事件隊列 { push(fq,(rand()%(2*dealMoney)dealMoney))。//隨機產(chǎn)生顧客加入第一隊列back(fq)beginTime=currentTime。back(fq)num=number。push(eq,(back(fq)money))。//將產(chǎn)生事件加入事件隊列back(eq)beginTime=currentTime。back(eq)type=”到達“。back(eq)num=number。++number。} 6存款函數(shù) void putMoney(){ total+=front(fq)money。//更新資金總額 push(eq,front(fq)money)。//加入事件隊列 離開 back(eq)type=”離開“。back(eq)num=front(fq)num。back(eq)endTime=(front(fq)beginTime+rand()%dealTime+1)。++counter。//更新客戶總數(shù)totalTime+=(back(eq)endTimefront(fq)beginTime)。//更新逗留時間pop(fq)。//刪除第一隊列第一個業(yè)務(wù) currentTimeOfDeal=back(eq)endTime。state=0。} 7取款函數(shù)void getMoney()//取款函數(shù) { if((money)total)//資金短缺 加入第二隊列 { push(sq,front(fq)money)。back(sq)beginTime=front(fq)beginTime。back(sq)num=front(fq)num。pop(fq)。6 } else { total=total+back(fq)money。push(eq,front(fq)money)。//加入事件隊列離開 back(eq)type=”離開“。back(eq)num=front(fq)num。back(eq)endTime=(front(fq)beginTime+rand()%dealTime+1)。back(eq)beginTime=0。currentTimeOfDeal=back(eq)endTime。++counter。//更新客戶總數(shù)totalTime+=(back(eq)endTimeback(fq)beginTime)。//更新逗留時間pop(fq)。//刪除第一隊列第一個業(yè)務(wù) state=0。} } ,對其進行處理 void findAndDeal(){ while((temped=searchAndDel(sq,total))amp。amp。NULL!=temped)//查找可處理取款 { total+=tempedmoney。totail=total+tempedmoney。push(eq,tempedmoney)。//加入事件隊列訓 離開 back(eq)type=”離開“。back(eq)num=tempednum。randomTemp=rand()%dealTime+1。//更新資金總額 7 back(eq)endTime=currentTime+randomTemp。currentTimeOfDeal+=randomTemp。++counter。//更新客戶總數(shù)totalTime+=(back(eq)endTimetempedbeginTime)。//更新逗留時間delete temped。//刪除節(jié)點 temped=NULL。} state=0。} 9 主函數(shù) int main(){ int m。cinm。if(m=111111){ coutn。while(n==1){srand(time(NULL))。//初始化隨機函數(shù) couttotal。coutcloseTime。8coutarriveTime。coutdealTime。theArriveTime+=rand()%arriveTime+1。//首次到達時間 while(currentTime} cout} if(state==1amp。amp。!=NULL){} if(money=0){} else getMoney()。putMoney()。findAndDeal()。arrive()。theArriveTime+=rand()%arriveTime+1。9} coutbeginTime)。//更新結(jié)束時第if(type==”離開“)coutnumtypeendTimemoney type==”到達“)coutnumtypebeginTimemoney coutnum}} cout在用隨即函數(shù)rand產(chǎn)生隨機數(shù)的時候,對其初始化用srand(time(NULL),為了使得產(chǎn)生的隨機數(shù)是整數(shù)要在后面加一 測試結(jié)果如圖一所示為輸入密碼進入系統(tǒng)后圖一輸入密碼進入系統(tǒng)后如圖二為輸入銀行的初始存款,營業(yè)時間,兩個到達事件的最大間隔,客戶交易的最大時間圖二輸入各項信息后如圖三所示產(chǎn)生的客戶信息圖三 客戶的信息(到達時間和離開時間,平均在的時間)參考文獻[1] 吳文虎,程序設(shè)計基礎(chǔ)(第二版),北京,清華大學出版社 [2] 譚浩強,C語言程序設(shè)計,北京,清華大學出版社 [3] 邊肇祺,模式識別(第二版),北京:清華大學出版社[4] 李永忠,幾種小波變換的圖像處理技術(shù),西北民族學院學報,自然科學版 [5] 嚴蔚敏,吳偉民,米寧,數(shù)據(jù)結(jié)構(gòu)題集(c語言版),清華大學出版社心得體會轉(zhuǎn)眼之間,來到大學已經(jīng)一年半的時間了,對程序的學習也有了初步的認識,在大一的時候?qū)W習了程序設(shè)計,大二緊接著又學了數(shù)據(jù)結(jié)構(gòu),在這次的課程設(shè)計中,遇到了一些問題,通過老師和同學的幫助得到了解決,并且對程序設(shè)計的認識又提高了一個層次,在以后的學習中,對經(jīng)常出現(xiàn)的問題會更加注意。這次的課程設(shè)計給了我很大的幫助,在過程中學到了很多的知識,對程序的規(guī)范性以及有效性更加的重視。在以后編程序的過程中會更加注意程序的完善性,使程序的功能更加的齊全,而這也是作為一個程序設(shè)計師必須要具備的。認識到只有多多的練習才能更好的運用所學習的知識。在大學里要充分的利用各種資源,提高自己的水平。第三篇:數(shù)據(jù)庫課程設(shè)計心得體會數(shù)據(jù)庫課程設(shè)計心得體
點擊復制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1