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

正文內(nèi)容

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

2023-04-07 00:23:34 本頁面
 

【正文】 9。YN(c==39。(39。(39。p2=p1。 head=NULL。char c。while(p!=0)free(p)。return 0。Esc39。int sure()。p=pnext。void print(struct student *)。 直到確認(rèn)pmath=temp。W39。?c32:c。}while(!sure())。scanf(%s,pnum)。 char c。 /*找出傳進(jìn)來鏈表的表尾*/NYq=NULL?qnext=p。struct student *p,*q,*hed。formhead()。head=t。 p1=p1next。 p2=head。 headnext=NULL。break。 none=0。 直到確認(rèn)clrscr()。m=menu3() 直到’0’=m=’6’clrscr()。printf(\npress any key to return.)。 while(p!=NULL)NY strcmp(pname,name)==0?putout(p)。scanf(%s,name)。p=head。void search2(struct student *)。none=0。scanf(%s,number)。p=head。void search1(struct student *)。case 51:search3(head)。 while(flag)switch(menu2())case 49:search1(head)。ch=getchar()。gotoxy(20,18)。)。cprintf(6History。gotoxy(25,12)。)。 cprintf(2English。gotoxy(25,8)。gotoxy(20,3)。textbackground(BLUE)。return ch。 cprintf(****************************************)。gotoxy(25,16)。)。 cprintf(1search by ID number。 cprintf(Query menu)。textbackground(BLUE)。return ch。 cprintf(****************************************)。gotoxy(30,20)。)。 cprintf(4Delete。gotoxy(30,12)。)。gotoxy(20,6)。clrscr()。char ch。print(head)。case 39。printf(It39。break。case 39。339。239。139。039。G.利用結(jié)構(gòu)體數(shù)組實(shí)現(xiàn)學(xué)生成績的數(shù)據(jù)結(jié)構(gòu)設(shè)計(jì);模塊:學(xué)生成績管理系統(tǒng)查詢模塊排序模塊顯示模塊保存模塊刪除模塊插入模塊結(jié)束顯示返回插入返回選擇返回保存返回按學(xué)號(hào)查詢按學(xué)號(hào)選擇刪除按姓名選擇刪除返回主菜單按姓名查詢按成績查詢排序返回?cái)?shù)學(xué)平均分英語C語言健康教育返回計(jì)算機(jī)歷史程序結(jié)構(gòu)圖:main:int flag=1。D.若選3,將一個(gè)新學(xué)生記錄按學(xué)號(hào)順序插入。要求編程序?qū)崿F(xiàn)查詢、排序、插入、刪除諸功能。排序功能:按學(xué)生平均成績進(jìn)行排序。A、 設(shè)計(jì)內(nèi)容每一條記錄包括一個(gè)學(xué)生的學(xué)號(hào)、姓名、性別、各門課成績(上學(xué)期的科目)、平均成績。輸入功能:可以一次完成若干條記錄的輸入。插入功能:按學(xué)號(hào)順序插入一條學(xué)生記錄。具體要求如下:A.要求顯示如下界面****************************************1查詢2排序3插入4刪除****************************************通過選擇14來確定要做哪一個(gè)操作。E.若選4,刪除指定學(xué)生的記錄。 struct student *head=NULL。:flag=0。:search(head)。:sort(head)。:head==NULL?head=insert(head):insert(head)。439。case 39。s saved!)。639。break。textmode(C80)。gotoxy(20,3)。cprintf(****************************************)。gotoxy(30,10)。 cprintf(3Insert。)。gotoxy(30,18)。 cprintf(0Exit。gotoxy(1,25)。int menu2()。textcolor(YELLOW)。gotoxy(20,8)。)。gotoxy(25,14)。 cprintf(0Return to main menu。gotoxy(1,25)。int menu3()。textcolor(YELLOW)。 cprintf(Enter the number of subjects to check)。cprintf(1Math。)。gotoxy(25,11)。cprintf(5Health Education。)。gotoxy(25,15)。 cprintf(****************************************)。return ch。break。break。struct student *p。clrscr()。 直到確認(rèn)printf(Search results:\n)。p=pnext。int none=1。clrscr()。 直到確認(rèn)clrscr()。none=0。 getch()。printf(Please enter a highest score:\n)。printf(Search results:\n)。p1=p1next。‘2’與‘1’同理‘3’與‘1’同理‘4’與‘1’同理‘5’與‘1’同理‘6’與‘1’同理‘7’與‘1’同理struct student *sort(struct student *)。while(temp!=NULL)t=temp。 while(taverp1averamp。NYp1==p2?tnext=p1。p1=head。print(head)。hed=head。return hed==NULL?p:hed。 clrscr()。 直到確認(rèn)printf(\ninput the student39。 直到確認(rèn)c=getchar()。 直到(psex==39。)printf(input the student39。下面成績同理void putout(struct student *)。struct student *p。printf(It39。har c。:)。void frees( struct student *)。p=pnext。 struct student *p1,*p2,*head。 input(p1)。if(flag==1) printf(\ncontinue or not?(Y/N):)。y39。n39。N39。Y39。NYc==39。?flag=0。p2next=NULL。FILE *fp。p1=(struct student *)malloc(LEN)。p1next=(struct student *)malloc(LEN)。 p1=p1next。void save(struct student *)。getch()。 p=pnext。p=head。struct student *delete(struct student *)。 struct student *p1,*_del。getch()。)。\n)。039。)clrscr()。amp。printf(delete this data? Cancel by 39。Ngetch()==27 Yp1=_delnext。printf(\nDelete successfully!)。none=0。:)。 p1=p1next。 printf(\nDelete successfully!)。getch()。) 同x==’1’程序代碼:define LEN sizeof(struct student)define NULL 0struct student{ char num[11]。 float english。 float history。int menu()。void search1(struct student *)。struct student *insert(struct student *)。int sure()。void save(struct student *)。 textmode(C80)。 gotoxy(20,3)。 cprintf(****************************************)。 gotoxy(30,10)。 cprintf(3Insert。)。 gotoxy(30,18)。 cprintf(0Exit。 gotoxy(1,25)。}/*查詢菜單函數(shù)*/includeinclude includeint menu2(){char ch。 clrscr()。 cprintf(****************************************)。 gotoxy(25,12)。 cprintf(3search by score。)。 cprintf(please press the number you choose:)。 textmode(C80)。 gotoxy(20,3)。 gotoxy(25,8)。 cprintf(2English。)。 gotoxy(25,12)。 cprintf(6History。)。 gotoxy(20,18)。 ch=getchar()。break。break。 int none=1。 printf(please in put a student39。 clrscr()。 none=0。getch()。 p=head。 scanf(%s,name)。formhead()。 }if(none) printf(\ncan not find the data!)。 int m。amp。}while(m39。)。 do {clrscr()。 }while(!sure())。 /*輸出表格頭*/ switch(m) /*按界面函數(shù)返回的值輸出相應(yīng)的結(jié)果*/ { case 39。 p1=p1next。 break。 none=0。 getch()。: /*C語言*/ while(p1!=0) {if(p1cphigh) putout(p1)。 printf(\npress any key to return.)。439。 } if(none) printf(\ncan no
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1