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

正文內(nèi)容

圖書館管理系統(tǒng)程序設(shè)計(jì)方案-資料下載頁(yè)

2025-05-14 23:13本頁(yè)面
  

【正文】 id del()/*刪除*/{ struct book *p1,*p2。 char name[50]。 { if(head==NULL) { printf(list null!\n)。 goto end。 } } p1=head。 printf(input the deleted name:\n)。 scanf(%s,name)。 while(strcmp(name,p1name)!=0amp。amp。p1next!=NULL) { p2=p1。 p1=p1next。 } if(strcmp(name,p1name)==0) { if(p1==head) head=p1next。 else { if(p1next==NULL) { p2next=NULL。 end=p2。 } else p2next=p1next。 } free(p1)。 printf(delete: %s\n,name)。 n=n1。 } else printf(%s not been found!\n,name)。 print()。end: return。 }void l()//按類別統(tǒng)計(jì){ struct book *p1,*p2。 int z=0。 char gategory[20]。 printf(請(qǐng)輸入圖書類別:\n)。 scanf(%s,gategory)。 if(head==NULL) { printf(list null!\n)。 goto end。 } p1=head。 while(p1next!=NULL) { while(strcmp(gategory,p1gategory)!=0amp。amp。p1next!=NULL) { p2=p1。 p1=p1next。 } if(strcmp(gategory,p1gategory)==0) { z++。 p2=p1。 p1=p1next。 } } if(strcmp(gategory,p1gategory)==0) { z++。 p2=p1。 p1=p1next。 } printf(該類別圖書總數(shù):%d,z)。end: return。}void w()//總數(shù){ printf(圖書總數(shù):%d,n)。}void MH(struct book *p,char b[])//模糊查詢{ while(p!=NULL) { if(strstr(pname,b)!=NULL) { printf(結(jié)果:%ld,%s,%s,%s,%s,%d,%s\n,pdigit,pname,pauthor,pgategory,pphouse,pprice,psynopsis)。 } else printf(\n)。 p=pnext。 }}void save()//儲(chǔ)存{ FILE * fp。 struct book *p。 if((fp=fopen(,ab))==NULL) { printf(cannot open file\n)。 return。 } if((fp=fopen(,a))==NULL) { printf(cannot open file\n)。 return。 } for(p=head。p!=NULL。p=pnext) if(fwrite(p,sizeof(struct book),1,fp)!=1) printf(file print error\n)。 fclose(fp)。 }void read()//讀取 { FILE *fp。 fp=fopen(,rb)。 struct book *p1,*p2。 p2=end。 p1=(struct book *)malloc(LEN)。 fread(p1,sizeof(struct book),1,fp)。 while(!feof(fp)) { n++。 if(n==1) head=p1。 else p2next=p1。 p2=p1。 p1=(struct book *)malloc(LEN)。 fread(p1,sizeof(struct book),1,fp)。 } p2next=NULL。end=p2。print()。} 2009年7月
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1