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

正文內(nèi)容

課程設(shè)計(jì)選題管理系統(tǒng)設(shè)計(jì)-預(yù)覽頁

2025-01-17 21:24 上一頁面

下一頁面
 

【正文】 ................................................................ 23 附 錄 .................................................................................................................. 24 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 1 第 一章 緒論 1. 1 課程設(shè)計(jì)的目的 ( 1)要求學(xué)生能夠熟練掌握 C++語言的基本知識(shí)和技能。 ( 2)建立清晰的類與函數(shù)之間的關(guān)系,學(xué)會(huì)對函數(shù)調(diào)用的熟練使用。 宏基 雙核處理器, 2G 內(nèi)存, 1G 獨(dú)立顯卡, 500G 硬盤。添加記錄時(shí),要求學(xué)號和編號要唯一。 ( 4)編輯功能:可根據(jù)查詢結(jié)果對相應(yīng)的記錄進(jìn)行修改,修改時(shí)注意學(xué)號的唯一性。能按課程設(shè)計(jì)題目名稱統(tǒng)計(jì)出學(xué)生選擇該題目的人員的信息。從文件讀取函數(shù), int read()。 3. 2 結(jié)構(gòu)設(shè)計(jì) 3. 2. 1 系統(tǒng)流程圖 課程設(shè)計(jì)學(xué)生選課系統(tǒng)設(shè)計(jì)結(jié)構(gòu)圖:進(jìn)入功能界面后,可以進(jìn)行 多項(xiàng)功能選擇,如添加 、 查詢 、 顯示 、 修改 、 刪除 、統(tǒng)計(jì) ,將數(shù)據(jù)寫入文件 以及 從文件讀取數(shù)據(jù)等;而查詢功能又可以分為按學(xué)號、姓名、題目編號、題目名稱等方式 進(jìn)行查詢 。 //學(xué)號 char stuname[10]。 //班級 char specialty[10]。 //關(guān)鍵詞 char technology[30]。 //添加學(xué)生信息 void search()。 //按題目編號查詢信息 void searchame()。 //統(tǒng)計(jì)信息 void display()。 4. 2 函數(shù)實(shí)現(xiàn) void Guanli::write(int n) { fstream myfile。 } int count=n。i++) { myfilestu[i].stuid stu[i].stuname stu[i].sex stu[i].age stu[i].clas stu[i].specialty stu[i].couid stu[i].couname stu[i].keyword stu[i].technology endl。 if(!myfile) { cout該文件不能打開 !endl。 myfilecount。 coutendl。 int i=0。N39。 int c=0。 } } cout姓名 :。 cinstu[i].sex。 coutendl。 cout專業(yè) :。 cinstu[i].couid。 coutendl。 cout實(shí)現(xiàn)技術(shù) :。 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 8 cinsign。 cout** (1)根據(jù)學(xué)號查詢 **endl。 coutendl。 cinc。 break。 break。 int s。 cins。 //查找判斷 if(i==n) { cout提示:對不起,無法找到該學(xué)生的信息! endl。 cout性別 : stu[i].sexendl 。 cout題目編號 : stu[i].couidendl。 } } void Guanli::searchsname() { int n=read()。 for(int i=0。 cout姓名 : stu[i]. stunameendl。 cout專業(yè) : stu[i]. specialtyendl。 cout實(shí)現(xiàn)技術(shù) : stu[i].technologyendl。 cout請輸入需要查找的題目編號 :endl。in) i++。 cout姓名 : stu[i]. stunameendl。 cout專業(yè) : stu[i]. specialtyendl。 cout實(shí)現(xiàn)技術(shù) : stu[i].technologyendl。 cinc。 cout學(xué)號 : stu[i].stuidendl。 cout班級 : stu[i].clas endl。 cout關(guān)鍵詞 : stu[i].keywordendl。 int i=0。 while((stu[i].stuids)!=0amp。 //輸入失敗信息 } else { cout該學(xué)生的信息 :endl。\n39。\n39。\n39。\n39。\n39。 cinstu[i]. stuid 。 coutendl。 cout年齡 :。 cinstu[i].clas 。 coutendl。 cout題目名稱 :。 cinstu[i].keyword。 coutendl。 if(c=39。 } } void Guanli::del() { int n=read()。 cout請輸入需要?jiǎng)h除學(xué)生的學(xué)號 :endl。in) i++。j++) //刪除操作 { stu[j].stuid=stu[j+1].stuid。 strcpy(stu[j].clas,stu[j+1].clas)。 strcpy(stu[j].keyword,stu[j+1].keyword)。 cout姓名 :stu[i].stunameendl。 cout班級 :stu[i].clasendl。 cout關(guān)鍵詞 :stu[i].keywordendl。 char c[10]。in。 cout性別 :stu[i].sexendl。 cout題目編號 :stu[i].couidendl。 } else { cout沒有此條記錄! endl。 else { for(int i=0。姓名 stu[i].stuname39。年齡 stu[i].age39。 專業(yè) stu[i].specialty39。題目名稱 stu[i].couname39。 實(shí)現(xiàn)技術(shù)stu[i].technology39。 cout\n\n\t **歡迎使用課程設(shè)計(jì)選題管理系統(tǒng) **\n\n。 cout\t 4.********刪除學(xué)生信息 ********\n。 cout\t 請輸入您的選擇: 。039。139。 } else if(choice==39。 main()。 system(pause)。) { ()。539。 } else if(choice==39。 main()。 } 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 16 第五章 系統(tǒng)測試 5. 1 模塊測試 1. 添加功能 添加學(xué)生信息界面如圖 51 示。 圖 54 根據(jù)學(xué)生姓名 查詢學(xué)生信息 ( 3)根據(jù)題目編號進(jìn)行查詢,界面如圖 55 示。 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 20 圖 58 刪除 學(xué)生 的 信息 5. 統(tǒng)計(jì)功能 根據(jù)題目名稱統(tǒng)計(jì)學(xué)生的信息,界面如圖 59 示。注意數(shù)據(jù)成員的類型,字符串型或整形等,一定要注意數(shù)據(jù)類型的匹配, 否則會(huì)報(bào)錯(cuò),對文件的操作不熟悉,文件的讀寫操作不熟悉,對文件所存儲(chǔ)的內(nèi)容刪除與修改不會(huì)。 通過這次課設(shè),讓我進(jìn)一步掌握了 C++程序設(shè)計(jì)語言,更好的理解了面向?qū)ο蟮某绦蛟O(shè)計(jì)思想。 再則 我要感謝我的 同學(xué) 在課程設(shè)計(jì)上給予我的指導(dǎo)、提供給我的支持和幫助, 是他們的幫助讓我可以更加順利的完成這次課設(shè); 同時(shí)也感謝學(xué)院為我提供良好的做 課程 設(shè)計(jì)的環(huán)境。 //學(xué)號 char stuname[10]。 //班級 char specialty[10]。 //關(guān)鍵詞 char technology[30]。 //添加學(xué)生信息 void search()。 //按題目編號查詢信息 void searchame()。 //統(tǒng)計(jì)信息 void display()。 //************************************************* //向文件中寫入數(shù)據(jù) void Guanli::write(int n) { fstream myfile。 } int count=n。i++) { myfilestu[i].stuid stu[i].stuname stu[i].sex stu[i].age stu[i].clas stu[i].specialty stu[i].couid stu[i].couname stu[i].keyword stu[i].technology endl。 if(!myfile) { cout該文件不能打開 !endl。 myfilecount。 coutendl。 int i=0。N39。 int c=0。 } } cout姓名 :。 cinstu[i].sex。 coutendl。 cout專業(yè) :。 cinstu[i].couid。 coutendl。 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 27 cout實(shí)現(xiàn)技術(shù) :。 cinsign。 cout** (1)根據(jù)學(xué)號查詢 **endl。 coutendl。 cinc。 break。 break。 int s。 cins。 //查找判斷 if(i==n) { cout提示:對不起,無法找到該學(xué)生的信息! endl。 cout性別 : stu[i].sexendl 。 cout題目編號 : stu[i].couidendl。 } } //************************************************* //按學(xué)生姓名查詢 void Guanli::searchsname() { int n=read()。 for(int i=0。 cout姓名 : stu[i]. stunameendl。 cout專業(yè) : stu[i]. specialtyendl。 cout實(shí)現(xiàn)技術(shù) : stu[i].technologyendl。 cout請輸入需要查找的題目編號 :endl。in) i++。 cout姓名 : stu[i]. stunameendl。 cout專業(yè) : stu[i]. specialtyendl。 cout實(shí)現(xiàn)技術(shù) : stu[i].technologyendl。 北華航天工業(yè)學(xué)院課程設(shè)計(jì)報(bào)告 30 cinc。 cout學(xué)號 : stu[i].stuidendl。 cout班級 : stu[i].clas endl。 cout關(guān)鍵詞 : stu[i].keywordendl。 int i=0。 while((stu[i].stuids)!=0amp。 //輸入失敗信息 } else { cout該學(xué)生的信息 :endl。\n
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1