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

正文內(nèi)容

c語(yǔ)言課設(shè)之學(xué)生證管理系統(tǒng)-資料下載頁(yè)

2025-04-07 05:23本頁(yè)面
  

【正文】 ******************/ delete(int k,STU *st) {int i,j,b。 long a。 FILE *fp。 printf(Please input your delete school number[ ]\b\b\b\b\b\b\b)。 scanf(%ld,amp。a)。 for(i=0。ik。i++) if(st[i].num==a) {printf(The deleted information are:%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。for(。ik1。i++) {st[i].num=st[i+1].num。 strcpy(st[i].name,st[i+1].name)。 st[i].sex=st[i+1].sex。 st[i].classes=st[i+1].classes。 st[i].birth=st[i+1].birth。 } j=k1。 fp=fopen(student1,wb)。 if(!fp) {printf(Document error! )。 exit(0)。} rewind(fp)。 fprintf(fp,%d,j)。 for(i=0。ij。i++) fprintf(fp,%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。 free(st)。fclose(fp)。menu()。 break。 } else {printf(There is no this schol number!)。 free(st)。fclose(fp)。menu()。 } }/**********************************statistic*************************/ void statistic(int k,STU *st) {int n,w,i,b,p=0。 long a。 int name[10]。 do {printf(\n\t\t***************STATISTIC MENU***************\n\n)。 printf(\t\t\ statistic\n)。 printf(\t\t\ statistic\n)。 printf(\t\t\ statistic\n)。 printf(\t\t\ of birth statistic\n)。 printf(\t\t\)。 printf(\n\n\t\t********************************************\n)。 printf(Choice your number(15)[ ]\b\b\b\b\b\b\b)。 scanf(%d,amp。n)。 if(n1amp。amp。n5) {w=1。getchar()。} else w=0。 }while(w==1)。 switch(n){case 1:printf(\nPlease input you statistic name[ ]\b\b\b\b\b\b\b\b\b)。 scanf(%s,name)。 for(i=0。ik。i++) {if(!strcmp(st[i].name,name)) {p++。 printf(%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。 } } if(p) printf(There are %d students.,p)。 statistic(k,st)。 case 2:printf(\nPlease input you classes[ ]\b\b\b\b\b\b\b)。 scanf(%ld,amp。a)。 for(i=0。ik。i++) {if(st[i].classes==a) {p++。 printf(%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。 } } if(p) printf(There are %d students.,p)。 statistic(k,st)。 case 3:printf(\nPlease input you statistic sex M or F[ ]\b\b\b\b\b\b\b)。 scanf(%d,amp。b)。 for(i=0。ik。i++) {if(st[i].sex==b) {p++。 printf(%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。 } } if(p) printf(There are %d students.,p)。 statistic(k,st)。 case 4:printf(\nPlease input you date of birth[ ]\b\b\b\b\b\b\b)。 scanf(%ld,amp。a)。 for(i=0。ik。i++) {if(st[i].classes==a) {p++。 printf(%ld%s%d%ld%ld,st[i].num,st[i].name,st[i].sex,st[i].classes,st[i].birth)。 } } if(p) printf(There are %d students.,p)。 statistic(k,st)。 case 5:free(st)。menu()。 } }/******************************main*************************/main() {menu()。}/***************************menu*************************/menu() {int n,w,i,j。 STU *st。 FILE *fp。 fp=fopen(,wb+)。 if(!fp) {printf(Document error! )。 exit(0)。} else {fread(amp。i,2,1,fp)。 fclose(fp)。 j=i+1。 st=(STU*)malloc(j*sizeof(STU))。 do {printf(\n\t\t********************MENU********************\n\n)。 printf(\t\t\ information of student\n)。 printf(\t\t\ information of student\n)。 printf(\t\t\ information of student\n)。 printf(\t\t\ information of student\n)。 printf(\t\t\ information of student\n)。 printf(\t\t\)。 printf(\n\n2\t\t********************************************\n)。 printf(Choice your number(16)[ ]\b\b\b\b\b\b\b)。 scanf(%d,amp。n)。 if(n1amp。amp。n6) {w=1。getchar()。} else {w=0。free(st)。} } while(w==1)。 switch(n) {case 1:input(i,st)。break。 case 2:inquiries(i,st)。break。 case 3:change(i,st)。break。 case 4:delete(i,st)。break。 case 5:statistic(i,st)。break。 case 6:exit(0)。break。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1