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

正文內容

學生信息管理系統(tǒng)程序設計課程設計報告(參考版)

2024-09-01 16:26本頁面
  

【正文】 c。 while(cp1experimentmark100||cp1experimentmark0){ printf(input error,please input again!(0100))。 scanf(%f,amp。cp1normalmark)。 while(cp1normalmark100||cp1normalmark0){ printf(input error,please input again!(0100))。 scanf(%f,amp。cp1CR)。 printf(credit: )。 printf(course name: )。 scanf(%d,amp。 return chead。 if(cp1term==0){ filewritecourse(chead)。 scanf(%d,amp。 printf(******************************************\n)。 cp1studentnumber=studentnumber1。 cp2=cp1=(struct course*)malloc(LENCOURSE)。 int i。 } //創(chuàng)建一個課程鏈表 struct course *creatcourse(int studentnumber1,char studentname1[]){ int =0。 p=pnext。 exit(1)。 p=head。 } //write the linked list of the student to student file void filewritestudent(struct student *head){ FILE *fp。 cp=cpnext。 exit(1)。 cp=chead。*/ //write the linked list of the course to the student file void filewritecourse(struct course *chead){ FILE *cfp。 struct stuaver *next。 struct stuaver{ char name[20]。 struct newcourse *next。 int cournumber。 struct newcourse{ char stuname[20]。 struct course *next。 float testmark。 float normalmark。 int term。 char studentname[20]。 struct course{ int studentnumber。 struct student *next。 char clas[20]。 char sex。 }*/ //從文件中讀取課程鏈表 include include define LENSTUDENT sizeof(struct student) define LENCOURSE sizeof(struct course) define LENNEWCOURSE sizeof(struct newcourse) define LENSTUAVER sizeof(struct stuaver) /*struct student{ int studentnumber。 } fnext=newnode。 f=head。 return head。 if(n==0){ printf(there is no data in it\n)。p2sex,p2profession,p2clas,p2tel)。 fscanf(fp,%d %s %c %s %s %s\n,amp。 p1=p2。 }else{ p2=(struct student*)malloc(LENSTUDENT)。 // while(!feof(fp)){ if(n==0){ head=(struct student*)malloc(LENSTUDENT)。 exit(1)。 if(head==NULL){ printf(there are no enough ram\n)。 exit(1)。 FILE *fp。 char ch。 }。 float aver。 }。 float couscore。 char courname[20]。 }。 float finalmark。 float experimentmark。 float CR。 char coursename[20]。 int coursenumber。 }。 char tel[20]。 char profession[30]。 char name[20]。 } } } return shead。 sp2aver=kaver。 strcpy(kname,tempname)。 } if(k!=sp2){ strcpy(tempname,sp2name)。sp1!=NULL。sp2=sp2next){ k=sp2。 } for(sp2=shead。 if(shead==NULL){ printf(sorry,there is no this course.\n)。 char tempname[20]。 } } } return shead。 sp2aver=kaver。 strcpy(kname,tempname)。 } if(k!=sp2){ strcpy(tempname,sp2name)。sp1!=NULL。sp2=sp2next){ k=sp2。 } for(sp2=shead。 if(shead==NULL){ printf(sorry,there is no this course.\n)。 char tempname[20]。 } } return nhead。 kcouscore=np2couscore。 np2cournumber=tempnumber。 // tempnumber=kcournumber。 strcpy(kcourname,np2courname)。 strcpy(np2stuname,tempname)。 } }if(k!=np2){ strcpy(tempname,kstuname)。np1!=NULL。np2=np2next){ k=np2。 } for(np2=nhead。 if(nhead==NULL){ printf(sorry,there is no this course.\n)。 int tempnumber。 char tempname[20]。 } } return nhead。 kcouscore=np2couscore。 np2cournumber=tempnumber。 // tempnumber=kcournumber。 strcpy(kcourname,np2courname)。 strcpy(np2stuname,tempname)。 } }if(k!=np2){ strcpy(tempname,kstuname)。np1!=NULL。np2=np2next){ k=np2。 } for(np2=nhead。 if(nhead==NULL){ printf(sorry,there is no this course.\n)。 int tempnumber。 char tempname[20]。 return nhead。 return NULL。 }np1=np2。 if(i==0){ nhead=np2。 np2aver=num/n。 flag=1。cpstudentnumber==pstudentnumber){ num+=cpfinalmark。cp=cpnext) if(term1==cptermamp。p=pnext,i++){ for(n=0,num=0,cp=chead1。 for(i=0。 cp=chead1。 int i,j,k,n=0。 struct student *p。 } //創(chuàng)建一個鏈表保存平均分信息 struct stuaver *creatnewlist1(int term1,struct course *chead1,struct student *head1){ struct stuaver *nhead=NULL,*np1,*np2。 } np2next=NULL。 np1=(struct newcourse*)malloc(LENNEWCOURSE)。 }else{ np2next=np1。 n++。 strcpy(np1courname,pcoursename)。amp。 return p。 np2=np1=(struct newcourse*)malloc(LENNEWCOURSE)。 int n=0。 struct course *p。 }。 float aver。 }。 float couscore。 char courname[20]。 }。 float finalmark。 float experimentmark。 float CR。 char coursename[20]。 int coursenumber。 }。 char tel[20]。 char profession[30]。 char name[20]。 return chead。 }else{ printf(dele success!\n)。 } } if(flag==0){ printf(there is no course\n)。 free(cp2)。cp2term==term1){ flag=1。 if(cp2coursenumber==coursenumber1 amp。 cp2=cp2next。 continue。 free(cp2)。cp2term==term1){ flag=1。 while(cp2!=NULL){ if(cp2coursenumber==coursenumber1 amp。 chead=chead1。 } //刪除一個學期的某一門課程 struct course*delecourse(int coursenumber1,int term1,struct course *chead1){ struct course *chead,*cp1,*cp2。 } filewritecourse1(chead)。 } } if(flag==0){ printf(there is no course\n)。 free(cp2)。 if(cp2studentnumber==studentnumber1){ flag=1。 cp2=cp2next。 continue。 free(cp2)。 while(cp2!=NULL){ if(cp2studentnumber==studentnumber1){ flag=1。 chead=chead1。 } ///刪除一個學生的課程 struct course *delethecourse(int studentnumber1,struct course*chead1){ struct course *chead,*cp1,*cp2。 } } filewritestudent1(head)。 else p2next=p1next。return head。p1=p1next。amp。 return head。 p2=p1next。 int flag=0。 }。 float aver。 }。 float couscore。
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1