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

正文內(nèi)容

學(xué)生成績管理系統(tǒng)數(shù)據(jù)結(jié)構(gòu)-課程設(shè)計(jì)報(bào)告-在線瀏覽

2024-10-31 16:25本頁面
  

【正文】 名、課程名及成績。 詳細(xì)設(shè)計(jì) 界面設(shè)計(jì) 用戶驗(yàn)證界面設(shè)計(jì) 設(shè)計(jì)風(fēng)格簡潔明了,顯示明白。 子菜單設(shè)計(jì):主要運(yùn)用一些簡單符號(hào)構(gòu)成,將主菜單的功能細(xì)分化,讓功能實(shí)現(xiàn)更加清晰簡單,讓使用者更好地使用系統(tǒng)。 各功能模塊的設(shè)計(jì) 根據(jù)劃分的功能模塊,定義以下 主要 函數(shù)實(shí)現(xiàn)各功能: 主函數(shù) main() 主函數(shù)主要作用是控制調(diào)用其它函數(shù)協(xié)調(diào)工作,主要用 switch 語句來實(shí)現(xiàn)其功能。 input 函數(shù) 本函數(shù)的功能是輸入學(xué)生的各類信息,主要通過 while, for 的循環(huán)語句和repeat 函數(shù)實(shí)現(xiàn),主要運(yùn)用 strcmp 函數(shù)實(shí)現(xiàn)對(duì)輸入重復(fù)學(xué)號(hào)和重復(fù)姓名的錯(cuò)誤提示,以及對(duì)輸入不合理成績的錯(cuò)誤提示。 sort 函數(shù) 本函數(shù)的功能是對(duì)學(xué)生的成績進(jìn)行排序,主要通過 for 的循環(huán)語句和指針實(shí)現(xiàn),通過堆排序按各學(xué)科進(jìn)行排序。 Modify函數(shù) 本函數(shù)的功能是修改學(xué)生信息,主要通過 while, for 的循環(huán)語句和 repeat函數(shù)實(shí)現(xiàn),主要運(yùn)用 strcmp 函數(shù)實(shí)現(xiàn)對(duì)輸入重復(fù)學(xué)號(hào)和重復(fù)姓名的錯(cuò)誤提示,以及對(duì)輸入不合理成績的錯(cuò)誤提示。 searcharecord 函數(shù) 本函數(shù)的功能是查找需要了解的學(xué)生的信息,主要通過循環(huán)語句實(shí)現(xiàn),包括for語句, while 語句和 if語句。 char user_name[19]。//最大 13 位 }。 /*學(xué)號(hào) */ char name[50]。 float chinese。 /* 數(shù)學(xué)成績 */ float english。 Student stud[N]。 do{ system(cls)。 printf(\t\t\t\t ? \n)。 printf(\n\t\t\t 請選擇身份登陸 \n)。 printf(\n\t\t\ )。 printf(\n\t\t\ )。 c=getchar()。039。339。 return(c39。)。 do{ system(cls)。 /* 菜單界面 */ printf(\t\t\t*****************************\n)。 printf(\t\t\t\t ? \n)。 printf(\t***********************************************************\n)。 printf(\t\t|| * * * * * * * 2. 瀏覽記錄 ||\n)。 printf(\t |||| * * * * * * * ||||\n)。 printf(\t |||||| * * * * * * * ||||||\n)。 printf(\t |||||||| * * * * * * * 8. 打開文件 ||||||||\n)。 printf(\t|||||||||| ? ? ? * ||||||||||\n)。 printf(\t\t\t請輸入序號(hào) 0~ 9: )。 /*讀入選擇 */ } while(c39。||c39。)。039。 /*返回選擇 */ } while(c39。||c39。)。039。 /*返回選擇 */ } ( 2) 學(xué)生主菜單 int menu2() { char c。 printf(\n)。 printf(\t\t\t\t ? \n)。 printf(\t***********************************************************\n)。 printf(\t\t|| * * * * * * * 2. 排序信息 ||\n)。 printf(\t |||| * * * * * * * ||||\n)。 printf(\t***********************************************************\n)。 printf(\t\t\t請輸入序號(hào) :)。 } while(c39。||c39。)。039。 } ( 3)游客主菜單 int menu3() { char c。 printf(\n)。 printf(\t\t\t\t ? \n)。 printf(\t***********************************************************\n)。 printf(\t\t|| * * * * * * * 2. 打開文件 ||\n)。 printf(\t |||| * * * * * * * 0. 退出系統(tǒng) ||||\n)。 printf(\n\t 溫馨提示:若要使用查詢功能,請先打開學(xué)生信息文件,謝謝! \n\n)。 c=getchar()。039。339。 return(c39。)。 char sign。n39。amp。N39。 scanf(\t\t%d,amp。 if(stud[n+i].term!=1amp。stud[n+i].term!=2) { printf(\t\t\t輸入錯(cuò)誤,請重新輸入 !\n)。} repeat2: printf(\t\t請輸入學(xué)生證號(hào) :)。 for(j=0。j++) if(strcmp(stud[n+i].num,stud[j].num)==0) /*判斷是否輸入重復(fù)學(xué)生學(xué)號(hào) */ { printf(\t\t\t學(xué)生學(xué)號(hào)已存在,請重新輸入 !\n)。} repeat3: printf(\t\t請輸入學(xué)生姓名 :)。 for(j=0。j++) if(strcmp(stud[n+i].name,stud[j].name)==0) /*判斷是否輸入重復(fù)學(xué)生姓名 */ { printf(\t\t\t學(xué)生姓名已存在,請重新輸入 !\n)。} repeat4: printf(\t\t請輸入語文成績 (0~100):)。stud[n+i].chinese)。 goto repeat4。 scanf(\t\t\t%g,amp。 if(stud[n+i].math0||stud[n+i].math100 ) { printf(\t\t\t輸入錯(cuò)誤,請重新輸入 !\n)。 } repeat6:printf(\t\t請輸入英語成績 (0~100):)。stud[n+i].english)。 goto repeat6。 scanf(\t\t%c,amp。 /*輸入判斷 */ i++。 } 調(diào)用 display 函數(shù) (本函數(shù)的功能是顯示學(xué)生的各類信息和規(guī)定輸出格式 ,時(shí)間復(fù)雜度為 O(n)) void Display(Student stud[],int n) /*瀏覽所有記錄 */ { int i。 /*格式頭 */ printf( 學(xué)期 學(xué)生證號(hào) 姓名 語文 數(shù)學(xué) 英語 \n)。 for(i=1。i++) { printf( %8d%15s%15s%15g%15g%5g\n,stud[i1].term,stud[i1].num,stud[i1].name,stud[i1].chinese,stud[i1].math,stud[i1].english)。 system(pause)。 for(。 printf(\t\t\t 語文成績排序 \n)。 printf(\t\n)。 printf(\t\n)。in+1。 system(pause)。 case 2: heapsort1(stud,n)。 printf(\n)。 /*格式頭 */ printf(\t 學(xué)期 學(xué)生證號(hào) 姓名 數(shù)學(xué) \n)。 for(i=1。i++) printf(\t%8d%15s%15s%15g%\n,stud[i1].term,stud[i1].num,stud[i1].name,stud[i1].math)。 break。 printf(\t\t\t 英語成績排序 \n)。 printf(\t\n)。 printf(\t\n)。in+1。 system(pause)。 case 4: return。 Student x。 x=stud[i]。 while(j=w) {if((jw)amp。(stud[j].chinesestud[j+1].chinese)) j++。i=j。 } else break。 } void sift1(Student stud[],int t,int w) { int i,j。 i=t。 j=2*i+1。amp。 if(stud[j].math) { stud[i]=stud[j]。j=2*j+1。 } stud[i]=x。 Student x。 x=stud[i]。 while(j=w) {if((jw)amp。(stud[j].englishstud[j+1].english)) j++。i=j。 } else break。 } 調(diào)用 heapsort 函數(shù) /* 堆排序的算法 */ void heapsort(Student stud[],int j) { int i。 for(i=j/21。i) sift(stud,i,j1)。i0。 stud[0]=stud[i]。 sift(stud,0,i1)。 Student x。i=0。 for(i=j1。i) { x=stud[0]。 stud[i]=x。 } } void heapsort2(Student stud[],int j) { int i。 for(i=j/21。i) sift2(stud,i,j1)。i0。 stud[0]=stud[i]。 sift2(stud,0,i1)。 int j,i=0。n39。amp。N39。 scanf(\t\t%d,amp。 if(stud[n+i].term!=1amp。stud[n+i].term!=2) { printf(\t\t\t 輸入錯(cuò)誤,請重新輸入 !\n)。} repeat2: printf(\t\t 請輸入學(xué)生證號(hào) :)。 for(j=0。j++) if(strcmp(stud[n+i].num,stud[j].num)==0) /*判斷是否輸入重復(fù)學(xué)生學(xué)號(hào) */ { printf(\t\t\t 學(xué)生學(xué)號(hào)已存在,請重新輸入 !\n)。} repeat3: printf(\t\t 請輸入學(xué)生姓名 :)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1