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

正文內(nèi)容

小型圖書管理系統(tǒng)c語言課程設(shè)計報告-在線瀏覽

2025-05-10 07:22本頁面
  

【正文】 includestruct book{ char writer[20]。 char publishinghouse[20]。 float price。}。void Insert(struct book * head)。void Print_Book(struct book * head)。void change_Book(struct book * head)。struct book * Create_Book(){ struct book * head。 headnext=NULL。}void save(struct book * head){ struct book *p。 p=head。 fprintf(fp,************************************************\n)。 fprintf(fp, \n)。 fprintf(fp,%s\t %s\t %s\t %s\t %.2f\t \n,pnumber,ptitle,pwriter,ppublishinghouse,pprice)。 fclose(fp)。}//插入//void Insert(struct book *head){ struct book *s, *p,*p1,*swap。Y39。 p1=swap。 while(flag==39。||flag==39。) { s=(struct book *)malloc(sizeof(struct book))。 fflush(stdin)。 printf(\n 請輸入圖書書名:)。 scanf(%s,stitle)。 fflush(stdin)。 printf(\n 請輸入圖書出版社:)。 scanf(%s,spublishinghouse)。 fflush(stdin)。sprice)。//排序// p1=pnext。 strcpy(swaptitle,p1title)。 strcpy(swappublishinghouse,p1publishinghouse)。 strcpy(p1number,snumber)。 strcpy(p1writer,swriter)。 p1price=sprice。 strcpy(stitle,swaptitle)。 strcpy(spublishinghouse,swappublishinghouse)。 } p=p1。 }while(p1!=NULL)。 snext=NULL。 printf(\n 繼續(xù)添加?(Y/N):)。 scanf(%c,amp。 printf(\n)。N39。n39。} else if(flag==39。||flag==39。) {continue。}//查找//void search_book(struct book *head){ struct book * p。 p=head。 } else { printf(請輸入您要查找的書名: )。 scanf(%s,temp)。 if(strcmp(ptitle,temp)==0) { printf(\n圖書已找到!\n)。 printf(書號: %s\t\n,pnumber)。 printf(作者名: %s\t\n,pwriter)。 printf(價格: %.2f\t\n,pprice)。 } } }} void Print_Book(struct book * head) { struct book * p。 } p=head。 printf( 書號\t書名\t作者\t出版社\t價格\t\n)。 while(pnext!= NULL) { p=pnext。 } printf(*************************************\n)。}//更改//void change_Book(struct book * head){ struct book * p。 char temp[20]。 printf(請輸入要修改圖書的書
點擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1