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

正文內(nèi)容

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

2025-03-20 00:23 本頁(yè)面
   

【正文】 老師也說(shuō)過(guò),C語(yǔ)言是不能考背誦的,完全需要實(shí)戰(zhàn),我很相信這一句話(huà),不過(guò)在實(shí)踐的過(guò)程中,我常常倍感只是的缺乏,似乎我對(duì)C語(yǔ)言只能說(shuō)是認(rèn)識(shí),不能說(shuō)是了解;并且我我所謂的認(rèn)識(shí)只是我知道有個(gè)語(yǔ)言叫C。}工程文件:實(shí)驗(yàn)總結(jié):這次實(shí)驗(yàn)遇到非常多的問(wèn)題,首先,由于不清楚頭文件的性質(zhì)和原理,出現(xiàn)了許多重定義的問(wèn)題,在調(diào)試程序的時(shí)候總在輸入出錯(cuò)處理上耽擱了很多時(shí)間,例如回車(chē)傳到某個(gè)字符型變量,引起了很多次死循環(huán),還有浮點(diǎn)型數(shù)據(jù)似乎不能直接傳給一個(gè)結(jié)構(gòu)體里的變量,需要用一個(gè)中間變量來(lái)傳遞。 head=NULL。amp。 getch()。 _del=_delnext。 _del=p1next。 if(getch()==27) {p1=p1next。Esc39。 } head=p1。 _del=p1。 putout(_del)。 printf(\ndelete this data? Cancel by 39。 while(_del==p1amp。) /*按姓名查找,方法和上面一致*/ {do { clrscr()。} else /*沒(méi)有發(fā)現(xiàn)目標(biāo)*/ {printf(Can not find the data...)。 } } else /*若不是目標(biāo),兩個(gè)指針都后移*/ {p1=p1next。 /*刪除則將p1的下一個(gè)結(jié)點(diǎn)跳過(guò)目標(biāo)指向不表的下一個(gè)結(jié)點(diǎn)*/ free(_del)。 putout(_del)。 printf(\ndelete this data? Cancel by 39。 } } else _del=p1next。 /*刪除的話(huà)將P1指向目標(biāo)的下一個(gè)結(jié)點(diǎn)*/ free(_del)。/*輸出目標(biāo)的相關(guān)信息*/ formhead()。 /*找到目標(biāo),none為非真*/ clrscr()。 }while(!sure())。139。 if(x==39。amp。amp。 x=getchar()。)。} do /* 選項(xiàng)界面控制部分*/ {clrscr()。 /*初始化為頭指針*/ if(p1==NULL) /*無(wú)數(shù)據(jù)處理*/ {clrscr()。 char x。 if(p==NULL) return p。 p=pnext。 getch()。 return (head)。 } p2=p1。 /*申請(qǐng)成功即將其地址作為首地址*/ while(!feof(fp)) { if(fread(p1,LEN,1,fp)!=1) break。 /*為第一個(gè)結(jié)點(diǎn)申請(qǐng)內(nèi)存*/ if(!p1) {printf(out of memory!\n)。 if((fp=fopen(,rb))==NULL) /*打開(kāi)文件*/ {printf(fail to open the file!!\n)。 } p2next=NULL。 input(p1)。Y39。Y39。N39。n39。y39。 if(flag==1) printf(\ncontinue or not?(Y/N):)。 while(flag) /*循環(huán)添加結(jié)點(diǎn)直到不想再添加*/ { n=n+1。 int n=0,flag=1。 p=pnext。 else return 1。Esc39。 getch()。 p=pnext。 printf(\n+++++++++++)。}while(!sure())。 do {printf(\ninput the student39。 scanf(%f,amp。}while(!sure())。 do {printf(\ninput the student39。 scanf(%f,amp。}while(!sure())。 do {printf(\ninput the student39。 /* 各科成績(jī) ↓*/ scanf(%f,amp。W39。M39。 psex=c39。 for Man or 39。}while(!sure())。}while(!sure())。 clrscr()。 /*找出傳進(jìn)來(lái)鏈表的表尾*/ if(q!=NULL) qnext=p。 /*返回頭指針,好像沒(méi)什么用...以備拓展*/}includeinclude struct student *insert(struct student *head) /*插入函數(shù)*/{struct student *p,*q,*hed。 /*指針后移*/ }clrscr()。 /*新頭結(jié)點(diǎn)為待排序點(diǎn)*/ } else /*待排序點(diǎn)應(yīng)插入在中間某個(gè)位置p2和p1之間,如p為空則是尾部*/ { tnext=p1。p1!=NULL) /*作平均分大小比較*/ { p2=p1。 /*原表頭結(jié)點(diǎn)指針后移*/ p1=head。temp=headnext。 } if(none) printf(\ncan not find the data!)。739。 printf(\npress any key to return.)。: /*歷史*/ while(p1!=0) {if(p1historyhigh) putout(p1)。 getch()。 none=0。 break。 p1=p1next。 case 39。 } if(none) printf(\ncan not find the data!)。339。 printf(\npress any key to return.)。: /*英語(yǔ)*/ while(p1!=0) {if(p1englishhigh) putout(p1)。 getch()。 none=0。 formhead()。high)。) return。739。 do {m=menu3()。 /*if((head)amp。}includeincludevoid search3(struct student *head) /*查找低于制定分?jǐn)?shù)的學(xué)生的函數(shù),可以分科查找*/{struct student *p1=NULL。} p=pnext。printf(Search results:\n)。s name:)。 struct student *p。printf(\npress any key to return.)。 while(p!=0) {if(strcmp(pnum,number)==0) {putout(p)。}while(!sure())。 do { clrscr()。 }}includeincludeincludevoid search1(struct student *head) /*按學(xué)號(hào)搜索的函數(shù)*/{ struct student *p。 case 51:search3(head)。 while(flag) switch(menu2()) { case 49:search1(head)。 cprintf(please press the number you choose:)。)。 cprintf(7average。 gotoxy(25,13)。)。 cprintf(3C Program。 gotoxy(25,9)。 cprintf(****************************************)。 clrscr()。} /*按各科成績(jī)查詢(xún)的菜單界面函數(shù) */includeincludeint menu3() {char ch。 gotoxy(1,25)。 cprintf(0Return to main menu。 gotoxy(25,14)。)。 gotoxy(20,8)。 textcolor(YELLOW)。 return ch。 cprintf(****************************************)。 gotoxy(30,20)。)。 cprintf(4Delete。 gotoxy(30,12)。)。 gotoxy(20,6)。 clrscr()。/*主菜單函數(shù)*/includeincludeint menu() {char ch。struct student *load(void)。void print(struct student *)。struct student *sort(struct student *)。void search()。}。 float hthy。 float math。239。printf(\nNo more data...)。_del=p1next。Ngetch()==27? Yp1next=_delnext。Esc39。_del=_delnext。del=p1。putout(_del)。 clrscr()。 直到確認(rèn)while(_del==p1amp。139。 直到輸入正確if(x==39。printf(\n\n 0cancel。printf(\n\n\n\n\n\n\n\n\n\n\n\n 1By Student Number to delete。printf(there is no data!press any key to back.)。 int none=1。 return (p)。struct student *p。while(p!=NULL)fwrite(p,LEN,1,fp)。Nfp=fopen(,wb))==NULL? Yprintf(fail to open the file!\n)。return (head)。p2=p1。head=p1while(!feof(fp))NYfread(p1,LEN,1,fp)!=1?break。printf(loading...\n)。struct student *p1,*p2,*head=NULL。flag=1。y39。)?flag=2。||c==3
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1