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

正文內(nèi)容

c語言學(xué)生成績(jī)管理系統(tǒng)課程設(shè)計(jì)報(bào)告-資料下載頁

2025-08-07 10:44本頁面
  

【正文】 /*平均值函數(shù)*/ void find()。 /*查找數(shù)據(jù)函數(shù)*/ void save()。 /*保存數(shù)據(jù)函數(shù)*/ void read()。 /*讀出數(shù)據(jù)函數(shù)*/ void del_file()。 /*刪除文件函數(shù)*/ void modify()。 /*修改文件函數(shù)*/ int now_no=0。 struct student //定義學(xué)生信息{ int no。 // 學(xué)號(hào) char name[20]。 //姓名 char sex[4]。 //性別 float score1。 //英語 float score2。 //計(jì)算機(jī) float score3。 //數(shù)學(xué) float sort。 //排序成績(jī) float ave。 //平均分 float sum。 //總分}。 void main(){ xianshi1()。 Zhao()。 Mima()。 }struct student stu[MAX],*p。 void menu() /*主函數(shù)*/ { int as。 char ch。 do{ xianshi()。 start: printf(\n\n\n\n\t\t\t 歡迎使用學(xué)生成績(jī)管理系統(tǒng)\n)。 printf(\n\n\n\n\t\t******************按任意鍵繼續(xù)********************)。 ch=getch()。 } while(!ch)。 system(cls)。 /*以下為功能選擇模塊*/ do { printf(\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n\n\t\t\t\\n)。 printf(\t\t\t\t選擇功能選項(xiàng)(輸入所選功能前的數(shù)字):)。 fflush(stdin)。 /*可用可不用,用于清除緩存防止下次用scanf輸入時(shí)出現(xiàn)錯(cuò)誤*/ scanf(%d,amp。as)。 switch(as) { case 1:system(cls)。 input()。 break。 case 2:system(cls)。 display()。 break。 case 3:system(cls)。 sort()。 break。 case 4:system(cls)。 display1()。 break。 case 5:system(cls)。 insert()。 break。 case 6:system(cls)。 del()。 break。 case 7:system(cls)。 modify()。 break。 case 8:system(cls)。 find()。 break。 case 9:system(cls)。 read()。 break。 case 10:system(cls)。 del_file()。 break。 case 11:system(cls)。 save()。 break。 case 12:system(exit)。 exit(0)。 default:system(cls)。 goto start。 } } while(1)。 /*while(1),1表示真,所以while(1)表示永遠(yuǎn)循環(huán)下去*/ /*至此功能選擇模塊結(jié)束*/ }void input() /*學(xué)生信息錄入模塊*/ { int i=0。 char ch。 do { printf(\t\t\t\\n輸入第%d個(gè)學(xué)生的信息\n,i+1)。 printf(\n輸入8位的學(xué)生學(xué)號(hào):)。 scanf(%u,amp。stu[i].no)。 fflush(stdin)。 printf(\n輸入學(xué)生姓名:)。 fflush(stdin)。 gets(stu[i].name)。 printf(\n輸入學(xué)生性別:)。 fflush(stdin)。 gets(stu[i].sex)。 printf(\n輸入英語成績(jī):)。 scanf(%f,amp。stu[i].score1)。 printf(\n輸入計(jì)算機(jī)成績(jī):)。 fflush(stdin)。 scanf(%f,amp。stu[i].score2)。 printf(\n輸入數(shù)學(xué)成績(jī):)。 fflush(stdin)。 scanf(%f,amp。stu[i].score3)。 printf(\n\n)。 i++。 now_no=i。 printf(是否繼續(xù)輸入?(Y/N))。 fflush(stdin)。 ch=getch()。 system(cls)。 } while(ch!=39。n39。amp。amp。ch!=39。N39。)。 system(cls)。 } void sort() /*排序數(shù)據(jù)函數(shù)*/ { struct student temp。 int i,j。 average()。 for(i=1。inow_no。i++) { for(j=1。j=now_noi。j++) { if(stu[j1].avestu[j].ave) { temp=stu[j]。 stu[j]=stu[j1]。 stu[j1]=temp。 } } } printf(排序已完成進(jìn)入功能2可進(jìn)行顯示\n)。 system(pause)。 system(cls)。 } void sort1() /*排序數(shù)據(jù)函數(shù)*/ { struct student temp。 int i,j。 for(i=1。inow_no。i++) { for(j=1。j=now_noi。j++) { if(stu[j1].score1stu[j].score1) { temp=stu[j]。 stu[j]=stu[j1]。 stu[j1]=temp。 } } } } void sort2() /*排序數(shù)據(jù)函數(shù)*/ { struct student temp。 int i,j。 for(i=1。inow_no。i++) { for(j=1。j=now_noi。j++) { if(stu[j1].score2stu[j].score2) { temp=stu[j]。 stu[j]=stu[j1]。 stu[j1]=temp。 } } } } void sort3() /*排序數(shù)據(jù)函數(shù)*/ { struct student temp。 int i,j。 for(i=1。inow_no。i++) { for(j=1。j=now_noi。j++) { if(stu[j1].score3stu[j].score3) { temp=stu[j]。 stu[j]=stu[j1]。 stu[j1]=temp。 } } } } void display() /*顯示數(shù)據(jù)函數(shù)*/ { int i。 char as。 average()。 do { printf(\t\t\t學(xué)生成績(jī)列表\n)。 printf(\t學(xué)號(hào)\t姓名\t性別\t英語\t計(jì)算機(jī)\t數(shù)學(xué)\t平均值\n)。 for(i
點(diǎn)擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1