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

正文內(nèi)容

學(xué)生和教師信息管理系統(tǒng)c語言課程設(shè)計(jì)-預(yù)覽頁

2025-06-14 22:10 上一頁面

下一頁面
 

【正文】 ]=x[k]。 int*sort1(int x[],int n)。i9。j++) if(x[j]x[k])k=j。} } } if(style==39。 } int*paoup(int x[],int n) /*氣泡升序 */ {int i,j,t。in1j。} return x。j++) for(i=0。x[i+1]=t。in。 fun(x,n)。 printf(\n)。 int*sort0(int x[])。 int*paodown(int x[],int n)。 scanf(%d,amp。in。 pri(x,n)。 printf(請(qǐng)選擇 a 或 b 方案 )。 printf(以下為調(diào)用函數(shù)二的排序結(jié)果 \n)。paoup,x,n)。 } 第三題 include 28 include define LEN sizeof(struct student) struct student { int num。 struct student*next。 if(p==head)head=headnext。f=qscore1。} return head。 q=pnext。g=qscore1。 } //============================================ int average(struct student*p) /*求平均分 */ {int e。 } //============================================ int max(struct student*p,int n) /*尋找最大平均分的學(xué)生的學(xué)號(hào) */ {int i,a=0。i++) { average(p)。 //================================== } int min(struct student*p,int n) /*尋找最小平均分的學(xué)生學(xué)號(hào) */ {int i,a=1000。i++) { average(p)。 } //================================================ void px(struct student*p) /*降序排序 */ { struct student*i,*j。i=inext) for(j=inext。javer=a。 c=iscore1。iscore2=jscore2。 a=p。 pscore2=k。 } 32 //======================================================== void inserttail(struct student*p,int c,int d,int e) /*尾部插入 */ { struct student*a,*b。inext。 anextscore2=e。 anextnext=b。 int average(struct student*p) 。 void px(struct student*p)。 head=p=(struct student*)malloc(LEN)。 printf(請(qǐng)輸入學(xué)生數(shù)據(jù) \n)。pnum,amp。 p=(struct student*)malloc(LEN)。 printf(以下為所有學(xué)生的學(xué)號(hào)及對(duì)應(yīng)平均分 \n)。 p=pnext。 p=head。 34 p=pnext。 p=head。 p=pnext。 p=head。 else{ for(i=0。 } } printf(以下為刪除后鏈表中的所有數(shù)據(jù) \n)。pnext。 px(p)。 } p=head。B,amp。 printf(%d,%d,%d,%d\n,headnum,headscore1,headscore2,headaver)。E,amp。 printf(以下為插入后,鏈表的所有數(shù)據(jù) \n)。 } 第四題 include include include struct student {char name[20]。}stu[10]。i++) {if(stu[i].score[n]m)m=stu[i].score[n]。} } //======================================== 37 int avere(struct student stu[10],int i) /*求平均分 */ {int a。 int i,a=0,b。 if(ab)a=b。 if((fp=fopen(,wb))==NULL) {printf(無法打開 此文件 \n)。i++) fwrite(amp。int i。 for(i=0。 printf(%s%5d%5d%5d%5d\n,stu[i].name,stu[i].num,stu[i].score[0],stu[i].score[1],stu[i].score[2])。 if((fp=fopen(,wb))==NULL) 39 {printf(無法打開此文件 \n)。i10。} fclose(fp)。 for(i=0。i9。j++) if(stu[j].averstu[k].aver)k=j。} } 40 } //========================================== void reading(struct student stu[10]) {int i。 } printf(以下為第 1, 3, 5, 7, 9 的數(shù)據(jù) \n)。 fread(amp。 } //======================================================== void main(){ //主函數(shù) void save2(struct student stu[10])。 void high(struct student stu[10],int n)。 int i,b。i++) scanf(%s %d %d %d %d\n,amp。stu[i].score[1],amp。 for(i=0。 for(i=0。 for(i=0。 save2(stu)。 char sex[10]。 int wage。 }。 printf(請(qǐng)輸入教師的教師號(hào) \n)。 scanf(%s,amp。psex)。 printf(請(qǐng)輸入教師的學(xué)歷 \n)。 scanf(%s,amp。pwage)。 printf(請(qǐng)輸入教師的電話 \n)。Lnext=p。 for(t=Lnext。 for(i=0。} return L。 } printf(請(qǐng)輸入要進(jìn)行刪除的教師號(hào) \n)。 if(num1==pnum) { L=pnext。 p=pnext。 } //======================================================== struct teacher* inquiry(struct teacher *L) /*查詢 */ { struct teacher *p。 scanf(%d,amp。 pnext!=NULL) 46 p=pnext。 return L。int z,x。 char f[30],q[30]。i=inext) for(j=inext。inum=a。 strcpy(iname,b)。 strcpy(isex,c)。 strcpy(e,jeducation)。 strcpy(f,jposition)。 z=jwage。strcpy(s,iaddr)。 jphone=iphone。 struct teacher *p。teach_num)。 if(pnum!=teach_num amp。} printf(該教師原信息 :\n)。pnum,amp。peducation,amp。pphone)。 return L。 return。 fclose(fp)。 printf(文件保存成功 \n)。 50 if((fp=fopen(,r))==NULL) { printf(文件不存在 \n)。 t=L。pname,amp。pposition,amp。 pnext=NULL。 fclose(fp)。 return L。 for(p=Lnext。 p=Lnext。 for(i=0。i++) { printf(教師號(hào) :%ld 姓名 :%s 性別 :%s 年齡 :%d 學(xué)歷 :%s\n 職位 :%s 薪水 :%d 地址 :%s 電話 :%ld\n, pnum,pname,psex,page,peducation,pposition,pwage,paddr,pphone)。 printf(****************************************************************************\n)。 scanf(%d,amp。 case 1: if(j!=1) { for(p=L,k=0。 j=j1。 53 case 2: if(j!=a+1) { for(p=Lnext,k=0。knn%6。 case 3: printf(【 當(dāng)前共有 %d 頁 】 \n,a+1)。 for(p=Lnext,k=0。 break。 struct teacher *p1,*p2,*L。 scanf(%d,amp。 } printf(最后將信息全輸 0 表示輸入結(jié)束 \n)。 p1=p2=(struct teacher*)malloc(sizeof(teacher))。p1sex,amp。p1wage,amp。 if(n==1) Lnext=p1。 scanf(%ld %s %s %d %s %s %d %s %ld,amp。p1age, amp。p1addr,amp。p1!=NULL。 if((fp=fopen(,a))==NULL) { printf(不能打開文件 \n)。return L。 return L。 struct teacher* sort(struct teacher *L)。 struct teacher*open()。 struct teacher *L。 printf( ||||\n)。 printf( ||____________________||\n)。 if(strcmp(z,LOVECONGCONG)!=0){printf( 口令錯(cuò)誤,請(qǐng)重新輸入 \n)。 //口令檢查 scanf(%s,amp。} printf(\n)。 58 printf( \n)。 printf( \
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1