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

正文內容

學生個人信息管理系統(tǒng)c語言課程設計(編輯修改稿)

2025-06-18 21:20 本頁面
 

【文章內容簡介】 oc(N)。 wnext=NULL。 p2=w。 /*將申請到的空間作為頭指針 */ while(!feof(fp)) /*循環(huán)讀數據直到文件尾結束 */ { p1=(M *)malloc(N)。 fread(p1,N,1,fp)。 p2next=p1。 if(!feof(fp)) p2=p1。 } free(p1)。 p2next=NULL。 fclose(fp)。 return(w)。 } /*創(chuàng)建學生信息列表 */ void create(struct s_type **w) { struct s_type *p,*q。 long n。 char choice,a[20]。 float r,s,t。 if(*w) *w=NULL。 printf(\n請輸入學生信息 :\n)。 printf(\n 學號 : )。 scanf(%ld,amp。n)。 printf(\n 姓名 : )。 scanf(%s,a)。 printf(\n 語文成績 : )。 scanf(%f,amp。r)。 printf(\n 數學成績 : )。 scanf(%f,amp。s)。 printf(\n 英語成績 : )。 scanf(%f,amp。t)。 p=(M *)malloc(N)。 p=n。 strcpy(p,a)。 p=r。 p=s。 p=t。 p=averege(r,s,t)。 pnext=NULL。 *w=p。 while(1) { printf(\n 學號 : )。 scanf(%ld,amp。n)。 printf(\n 姓名 : )。 scanf(%s,a)。 printf(\n 語文成績 : )。 scanf(%f,amp。r)。 printf(\n 數學 成績 : )。 scanf(%f,amp。s)。 printf(\n 英語成績 : )。 scanf(%f,amp。t)。 q=p。 p=(M *)malloc(N)。 p=n。 strcpy(p,a)。 p=r。 p=s。 p=t。 p=averege(r,s,t)。 pnext=NULL。 qnext=p。 printf(還要繼續(xù)輸入嗎 ?(Yes or No): )。 flushall()。 scanf(%c,amp。choice)。 if(choice==39。n39。||choice==39。N39。) break。 } } float averege(float a,float b,float c) { float aver。 aver=(a+b+c)/3。 return aver。 } /*根據學號查找 學生信息 */ void search_num(struct s_type *w) { long x。 printf(請輸入要查詢的學生信息的學生學號 :\n\n)。 scanf(%ld,amp。x)。 printf(\n您查找的學生信息如下 :\n\n)。 while(wamp。amp。w!=x) w=wnext。 if(w==NULL) printf(\n\n***********************Error,no such student!**************************\n)。 else printf(%ld %s %.2f %.2f %.2f %.2f\n,w,w,w,w ore2,w,w)。 } /*根據姓名查找學生信息 */ void search_name(struct s_type *w) { char m[20]。 printf(\n請輸入要查詢的學生信息的學生姓名 :\n)。 scanf(%s,m)。 printf(\n您查找的學生信息如下 :\n\n)。 while(wamp。amp。strcmp(w,m)) w=wnext。 if(w==NULL) printf(\n\n***********************Error,no such student!**************************\n)。 else printf(%ld %s %.2f %.2f %.2f %.2f\n,w,w,w,wore2,w,w)。 } /*根據學號刪除學生信息 */ void del(struct s_type **w) { long k。 struct s_type *p=*w,*t。 printf(\n請輸入要刪除的學生信息的學生學號 :\n)。 scanf(%ld,amp。k)。 if(p==k) *w=(*w)next,free(p)。 else { while(pnextamp。amp。pnext!=k) p=pnext。 if(pnext==NULL) printf(**************************Error,no such student*************************!\n)。 else { t=pnext。
點擊復制文檔內容
試題試卷相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1