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

正文內(nèi)容

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

2025-04-11 22:47本頁面
  

【正文】 t。 } } }} (7).調(diào)用用教師的姓名來查找相應(yīng)信息的函數(shù):struct teacher{ int num。 char name[30]。 char petent[30]。 char sex[4]。 float score[3]。 float sum。}。void SeacherbyName(struct teacher *p,char teacher[],int n){ int i,flag=1,t。 for(i=0。inamp。amp。flag。i++) { if(strcmp(p[i].name,teacher)==0) { flag=0。 t=i。 } } if(!flag) { printf(Num\tName\tCompetent\tSex\tMath\tEnglish\tComputer\tSum\n)。 printf(%d\t%s\t%s\t\t%s\t%.1f\t%.1f\t%.1f\t\t%.1f\n,p[t].num,p[t].name,p[t].petent,p[t].sex,p[t].score[0],p[t].score[1],p[t].score[2],p[t].sum)。 } else { printf(You put error!my system can39。t find!\n)。 }} (8).調(diào)用用教師的職工號(hào)來查找相應(yīng)信息的函數(shù):struct teacher{ int num。 char name[30]。 char petent[30]。 char sex[4]。 float score[3]。 float sum。}。void SeacherbyNum(struct teacher *p,int teacher2,int n){ int i,flag=1,t。 for(i=0。inamp。amp。flag。i++) { if(p[i].num==teacher2) { flag=0。 t=i。 } } if(!flag) { printf(Num\tName\tCompetent\tSex\tMath\tEnglish\tComputer\tSum\n)。 printf(%d\t%s\t%s\t\t%s\t%.1f\t%.1f\t%.1f\t\t%.1f\n,p[t].num,p[t].name,p[t].petent,p[t].sex,p[t].score[0],p[t].score[1],p[t].score[2],p[t].sum)。 } else printf(You put error!my system can39。t find!\n)。} (9).調(diào)用用來提示用戶,系統(tǒng)需要按哪些鍵才能實(shí)現(xiàn)相應(yīng)功能的函數(shù):includestruct teacher{ int num。 char name[30]。 char petent[30]。 char sex[4]。 float score[3]。 float sum。}。char InputInformation(void){ char c。 printf(The teachers39。 order by score or num!please input 39。a39。 to enter\n)。 printf(Seacher the teacher who you want!please input 39。b39。 to enter\n)。 printf(Back to the main table!please input 39。c39。 to enter\n)。 printf(Exit the system!please input 39。d39。 to enter\n\n)。 printf(please input a task that you want to acplish...\n)。 scanf(%1s,amp。c)。 return c。}(10).調(diào)用輸出的函數(shù),用來讀出文件的信息來把每個(gè)教師的信息都顯示在屏幕上:includeincludestruct teacher{ int num。 char name[30]。 char petent[30]。 char sex[4]。 float score[3]。 float sum。}。void FoutPut(struct teacher *p,int n){ int i。 FILE *fp。 if((fp=fopen(,r))==NULL) { printf(Cant39。s open file.)。 exit(0)。 } for(i=0。in。i++) { fscanf(fp,%d%s%s%s%f%f%f,amp。p[i].num,p[i].name,p[i].petent,p[i].sex,amp。p[i].score[0],amp。p[i].score[1],amp。p[i].score[2])。 } printf(Num\tName\tCompetent\tSex\tMath\tEnglish\tComputer\tSum\n)。 for(i=0。in。i++) { printf(%d\t%s\t%s\t\t%s\t%.1f\t%.1f\t%.1f\t\t%.1f\n,p[i].num,p[i].name,p[i].petent,p[i].sex,p[i].score[0],p[i].score[1],p[i].score[2],p[i].sum)。 printf(\n)。 }} 22
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1