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

正文內容

學生成績管理系統(tǒng)數(shù)據(jù)結構-課程設計報告-文庫吧資料

2024-09-05 16:25本頁面
  

【正文】 printf(\t\t\t 添加成功! \n)。 } gets(x)。 if(stud[n+i].english0||stud[n+i].english100 ) { printf(\t\t\t 輸入錯誤,請重新輸入 !\n)。 scanf(\t\t\t%g,amp。 goto repeat5。stud[n+i].math)。 } /*重新輸入該科成績 */ repeat5:printf(\t\t 請輸入數(shù)學成績 (0~100):)。 if(stud[n+i].chinese0||stud[n+i].chinese100 ) /*輸入不合理成績的錯誤提示 */ { printf(\t\t\t 輸入錯誤,請重新輸入 !\n)。 scanf(\t\t\t%g,amp。 goto repeat3。jn+i。 scanf(\t\t%s,stud[n+i].name)。 goto repeat2。jn+i。 /*交互輸入 */ scanf(\t\t%s,stud[n+i].num)。 goto repeat1。amp。stud[n+i].term)。) /*判斷 */ { repeat1: printf(\t\t 請輸入學期 :)。sign!=39。amp。 while(sign!=39。 } } 調用 add_a_record 函數(shù) ( 本函數(shù)的功能是添加一個學生的信息 ,時間復雜度為 O(n)) int add_a_record(Student stud[],int n) /* 添加多條信息 */ {char x[10],sign。 stud[i]=x。i) { x=stud[0]。 for(i=j1。i=0。 Student x。 sift1(stud,0,i1)。 stud[0]=stud[i]。i0。i) sift1(stud,i,j1)。 for(i=j/21。 } } void heapsort1(Student stud[],int j) { int i。 stud[i]=x。i) { x=stud[0]。 for(i=j1。i=0。 Student x。 } stud[i]=x。j=2*j+1。 if(stud[j].english) { stud[i]=stud[j]。amp。 j=2*i+1。 i=t。 } void sift2(Student stud[],int t,int w) { int i,j。 } else break。i=j。(stud[j].mathstud[j+1].math)) j++。 while(j=w) {if((jw)amp。 x=stud[i]。 Student x。 } stud[i]=x。j=2*j+1。 if(stud[j].chinese) { stud[i]=stud[j]。amp。 j=2*i+1。 i=t。 } } } 調用 sift 函數(shù) (調整堆) /* 調整堆 */ void sift(Student stud[],int t,int w) { int i,j。 break。i++) printf(\t%8d%15s%15s%15g\n,stud[i1].term,stud[i1].num,stud[i1].name,stud[i1].english)。 for(i=1。 /*格式頭 */ printf(\t 學期 學生證號 姓名 英語 \n)。 printf(\n)。 case 3: heapsort2(stud,n)。 system(pause)。in+1。 printf(\t\n)。 printf(\t\n)。 printf(\t\t\t 數(shù)學成績排序 \n)。 break。i++) printf(\t%8d%15s%15s%15g%\n,stud[i1].term,stud[i1].num,stud[i1].name,stud[i1].chinese)。 for(i=1。 /*格式頭 */ printf(\t 學期 學生證號 姓名 語文 \n)。 printf(\n)。) { switch(menu6()) { case 1: heapsort(stud,n)。 } 調用排序 函數(shù) ( Sort 函數(shù), heapsort 函數(shù)和 sift 函數(shù)) ( 本函數(shù)的功能是對學生的 成績 進行排序 ,時間復雜度為 O(n)) 調用 Sort 函數(shù) void Sort(Student stud[],int n) { int i。 } printf(\t\t\t)。in+1。 printf( \n)。 printf( \n)。 } return(n+i)。sign)。 } printf(\t\t是否繼續(xù)輸入記錄 ?(Y/N))。 if(stud[n+i].english0||stud[n+i].english100 ) { printf(\t\t\t輸入錯誤,請重新輸入 !\n)。 scanf(\t\t\t%g,amp。 goto repeat5。stud[n+i].math)。 } /*重新輸入該科成績 */ repeat5:printf(\t\t請輸入數(shù)學成績 (0~100):)。 if(stud[n+i].chinese0||stud[n+i].chinese100 ) /*輸入不合理成績的錯誤提示 */ { printf(\t\t\t輸入錯誤,請重新輸入 !\n)。 scanf(\t\t\t%g,amp。 goto repeat3。jn+i。 scanf(\t\t%s,stud[n+i].name)。 goto repeat2。jn+i。 /*交互輸入 */ scanf(\t\t%s,stud[n+i].num)。 goto repeat1。amp。stud[n+i].term)。) /*判斷 */ { repeat1: printf(\t\t請輸入學期 :)。sign!=39。amp。 /*x[10]為清除多余的數(shù)據(jù)所用 */ while(sign!=39。 } 調用 input 函數(shù) (本函數(shù)的功能是輸入學生的各類信息 ,時間復雜度為 O(n) ) int Input(Student stud[],int n) /*輸入若干條記錄 */ { int i=0,j。039。)。||c39。 } while(c39。 printf(\t\t\t請輸入序號 :)。 printf(\t***********************************************************\n)。 printf(\t ||| * * * * * * * |||\n)。 printf(\t\t | * ? ? ? |\n)。 printf(\t\t\t ?學生成績管理系統(tǒng)? \n)。 printf(\t\t\t\t 歡迎使用 \n)。 do{ system(cls)。)。 return(c39。439。039。 c=getchar()。 printf(\n\t 溫馨提示:若要使用查詢功能,請先打開學生信息文件,謝謝! \n\n)。 printf(\t ||||| * * * * * * * |||||\n)。 printf(\t ||| * * * * * * * |||\n)。 printf(\t\t | * ? ? ? |\n)。 printf(\t\t\t ?學生成績管理系統(tǒng)? \n)。 printf(\t\t\t\t 歡迎使用 \n)。 do{ system(cls)。)。 return(c39。939。039。)。 return(c39。939。039。 c=getchar()。 printf(\t***********************************************************\n)。 printf(\t ||||||||| * * * * * * * |||||||||\n)。 printf(\t ||||||| * * * * * * * |||||||\n)。 printf(\t ||||| * * * * * * * |||||\n)。 printf(\t ||| * * * * * * * |||\n)。 printf(\t\t | * ? ? ? |\n)。 printf(\t\t\t ? 學 生 成 績 管 理 系 統(tǒng) ? \n)。 printf(\t\t\t\t 歡迎使用 \n)。 /*運行前清屏 */ printf(\n\n\n\t\t\t09信管 3班?王曉媚? 3209005759\n)。 /*返回選擇 */ } 調用 menu 函數(shù) (系統(tǒng)總共有 9 個菜單函數(shù),這里只給出 3 個主菜單的代碼,詳細請看程序運行文件, 函數(shù)的功能是出現(xiàn)一個菜單界面 ) ( 1)教師主菜單 int menu() /*菜單函數(shù) */ { char c。039。)。||c39。 /* 讀入選擇 */ } while(c39。 printf(\n\t\t\t 請輸入序號 :)。 printf(\n\t\t\ )。 printf(\n\t\t\ )。 printf(\t\t\t ?學生成績管理系統(tǒng)? \n)。 /*運行前清屏 */ printf(\t\t\t\t 歡迎使用 \n)。/*結構體數(shù)組變量 */ 調用用戶驗證的 函數(shù) int menu1() { char c。 /*英語成績 */ }Student。 /*語文成績 */ float math。 /*姓名 */ int term。 typedef struct /*定義結構體數(shù)組 *
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1