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

正文內(nèi)容

學生成績管理系統(tǒng)論文畢業(yè)設計(doc畢業(yè)設計論文)-文庫吧資料

2025-06-25 01:58本頁面
  

【正文】 dent performance to the dynamic linked list.\n\n)。printf(automatically calculate a total score and grade point average\n\n)。 switch(digit){ case 1:printf( a new list of students data \n)。digit)。 printf(input 3 and look help information of Function .\n)。 /*由于窗口面積有限,一次只能看到幾條幫助信息,*/ printf(input 1 and look help information of Function .\n)。 return h。 /*最后一個結點的后繼指針為空*/ fclose(fp)。 /*保存當前結點的指針,作為下一結點的前驅*/ p=pnext。 /*如沒有申請到,則內(nèi)存溢出*/ return h。 /*如果沒讀到數(shù)據(jù),跳出循環(huán)*/ pnext=(struct student *)malloc(LEN)。 /*返回空頭指針*/ } h=p。 /*申請空間*/ if(!p) { printf(out of memory!\n)。 } printf(\nloading file......\n)。 /*輸入文件名*/ if((fp=fopen(infile,rb))==NULL) /*打開一個二進制文件,為讀方式*/ { printf(can not open file!\n)。printf(for example D:\\f1\\ or just a name:\n)。 /* 定義指向文件的指針*/ char infile[20]。 /*顯示保存成功*/ } /*函數(shù)功能:加載存儲在外部介質的文件到內(nèi)存或導入信息模塊*/ struct student *LoadFile(void) { struct student *p,*q,*h=NULL。 /*指針后移*/ } fclose(fp)。 /*移動指針從頭指針開始*/ while(p!=NULL) /*如p不為空*/ { fwrite(p,LEN,1,fp)。 } printf(\nsaving file......\n)。若打開操作失敗,則fp的值為NULL,此時輸出“不能打開該文件”的提示信息, */if((fp=fopen(outfile,wb))==NULL) /*為輸出打開一個二進制文件,如沒有則建立*/ { printf(can not open file!\n)。即通過fopen函數(shù)按指定的文件操作方式(wb(只寫))打開指定的文件(outfile)。該返回值要立即賦值給文件類型指針變量(例:FILE *fp)保存起來,否則fopen函數(shù)返回值的丟失會導致無法對被//打開的文件進行操作。scanf(%s,outfile)。 /*保存輸出文件名*/ printf(enter outfile name,it can be any file name suffix or no suffix names\n)。 /*定義指向文件的指針*/ struct student *p。 } FILE 。 unsigned istemp。 unsigned char *buffer。 unsigned char hold。 unsigned flags。而這些信息是存放在緩沖文件系統(tǒng)為每一個文件開辟的“文件信息//區(qū)”內(nèi)(為一個結構體變量),由系統(tǒng)事先指定的。2.與文件對應的內(nèi)存緩沖區(qū)的地址。/*找不到該結點*/ return(head)。 n=n1。 /*若p1指向的是首結點,把第二個結點地址賦給head*/ else p2next=p1next。 p1=p1next。amp。amp。 } p1=head。number)。 printf(please input the number you want to deleted:)。 } /*函數(shù)功能:按學號查找并刪除一個結點數(shù)據(jù)*/ struct student *DeleteStudent(struct student *head) { struct student *p1,*p2。 /*移動指針,指向下一結點,繼續(xù)查找*/ } if(p==NULL) /*指針為空,說明未能找到所要的結點*/ printf(can not find the number %d!\n,number)。number)。 printf(number:)。 } TotalScore(p)。 scanf(%f,amp。i NUM。 printf(input math,c_prog,english,polity,sport score.\n)。 printf(name:)。 printf(class:)。 scanf(%d,amp。 } while(p!=NULL)/*當記錄的指針不為空時*/ { if(pnum==number) { printf(inuput new data of the student.\n)。 if(head==NULL) { printf(\nList null!\n)。 scanf(%d,amp。 /*存放學號的變量*/ printf(inuput the sdudent number you want to modify,if number is 0,exit modify.\n)。 } /*函數(shù)功能:按學號查找并修改一個結點數(shù)據(jù)*/ void ModifyStudent(struct student *head) { struct student *p=head。 /*移動指針,指向下一結點,繼續(xù)查找*/ } if(p==NULL) /*指針為空,說明未能找到所要的結點*/ printf(can not find the sdudent number %d !\n,b)。 break。 } printf(\n total:% ave:% order:%d\n, ptotal, pave,porder)。i NUM。 printf(\n math | c_prog | english | polity | sport \n)。 } while(p!=NULL)/*當記錄的指針不為空時*/ { if(pnum==b)/*顯示找到的記錄信息*/ { printf(\f**********************The student data search*******************\n)。 /*輸入學號*/ if(head==NULL) { printf(\nlist null!\n)。 scanf(%d,amp。 int b。end: printf()。 p=pnext。 } printf(\n total:% ave:% order:%d\n, ptotal, pave,porder)。i NUM。 printf(\n math | c_prog | english | polity | sport \n)。 printf(\f*********All students achievement statistics and rank************\n)。 /*返回頭指針*/ } /*函數(shù)的功能:顯示所有已經(jīng)建立好的節(jié)點的節(jié)點號和該節(jié)點中數(shù)據(jù)項內(nèi)容*/ void PrintScore(struct student *head) { struct student *p=head。infonum)。 printf(number:)。 k=knext。 while(k!=NULL) /*重新賦予排序號(排序號因為被插入新數(shù)據(jù)而改變)*/ { n++。 infonext=NULL。 /*p2的后繼指針是info*/ infonext=p1。 /*info作為頭指針*/ infonext=p1。 /*使p2指向p1剛才的結點*/ p1=p1next。amp。 infonext=NULL。 /*設后繼指針為空*/ p1=p2=head。 } TotalScore(info)。 scanf(%f,amp。i NUM。 printf(input math,c_prog,english,polity,sport score.\n)。 printf(name:)。 while(infonum!=0) /*若為0則退出輸入*/{printf(class:)。 scanf(%d,amp。 /*如沒有申請到,內(nèi)存溢出*/ return NULL。 info=(struct student *)malloc(LEN)。 /*p1指向插入位置,p2是其前一結點,info指新插入記錄*/ int n=0。 } end: printf()。 ptorder=a。 /*如果flag為0,說明第一輪沒有發(fā)生過交換,每一個結點的總分都比后一結點都大,退出*/ pt=head。 } pt=ptnext。ptnextave)。 FloatSwap(amp。pttotal, amp。ptnextscore[i])。 i++) { FloatSwap(amp。 for (i=0。ptnextnum)。 IntSwap(amp。 pt=head。 goto end。 int flag=0,a=0。 strcpy(pt2, temp)。 strcpy(temp, pt1)。 *pt2 = temp。 temp = *pt1。 *pt2 = temp。 temp = *pt1。 p1=p1next。i++) { p1total+=p1score[i]。 for (i=0。 p1=head。 /*第一個結點未生成,則分配域首字節(jié)的地址(指針)為空地址*/ return(head)。p1num)。 printf(number:)。 /*p2保存p1原本指向的地址,使p2指向p1原來指向的節(jié)點*/ p1=(struct student *)malloc(LEN)。 /*第一個結點的生成*/ else p2next=p1。 n=n+1。p1score[i])。i++) { printf(%s:, subject[i])。 for(i=0。 scanf(%s,p1name)。 scanf(%s,p1class_0)。p1num)。 printf(number:)。 printf(:int type, class: char type[20],name: char type [20], score:float type.\n)。 /*頭指針head為空地址,無效指向*/p1=p2=(struct student *)malloc(LEN)。 /*定義struct student類型的指針變量p1,p2,head*,*p1指向某一結點,p2指向p1的前一結點*/n=0。 /*定義struct student類型的變量stu*/int n,i。 int order。 /*總分*/float ave。 /*姓名*/float score[5]。 /*班級*/int num。 /*定義初始密碼*/ /*高等數(shù)學 C程序設計 大學英語 馬克思 大學體育*/ char subject[NUM][10]={math,c_prog,english,polity,sport}?!闭Z句調用這個函
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1