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

正文內(nèi)容

c語言圖書管理系統(tǒng)課程設計報告-預覽頁

2025-01-17 15:03 上一頁面

下一頁面
 

【正文】 著《 C 程序設計 (第 3 版 ) 》北京:清華大學 出版社 [7] 洪國勝 等編著 《 C++ Builder 程序設計輕松上手》北京:清華大學出版社 [8] 寧正元《數(shù)據(jù)結構( c 語言)》 南京:東南大學出版社。 [12] 劉大有《數(shù)據(jù)結構》(面向 21 世紀課程教材) 北京:高等教育出版 社。//編號 char bookname[100]。//出版時間 float price。 //函數(shù)聲明 link *Cbook()。 void cxmenu()。 void holdcx(link *t)。 link *add(link *head)。 link *borrowbook(link *head)。 L:system(cls)。 switch(a) { case 1://進入主系統(tǒng) { B: system(cls)。 switch(b) { case 1://圖書信息的錄入 { h=Cbook()。 while(1) { scanf(%d,amp。 case 2://添加一本圖書信息 { h=add(h)。 case 3://修改一本書的信息 { revamp(h)。 }break。 }break。 while(1) { scanf(%d,amp。 case 2://按編號查詢圖書 { t=findnumber(h)。 printf(\n**************************************************\n)。 printf(\t\t%.2f,tprice)。 case 3://按書名查詢 圖書 { t=findboookname(h)。 printf(\n**************************************************\n)。 printf(\t\t%.2f,tprice)。 case 4://按作者查詢圖書 { t=findauthor(h)。 printf(\n**************************************************\n)。 printf(\t\t%.2f,tprice)。 case 5://保存查詢信息 { holdcx(t)。 } } }break。e)。 }break。 case 5:// 保存圖書信息到文件 { hold(h)。 }break。 case 0://退出系統(tǒng) { printf(\t\t\t 感謝使用,再見?。?! )。 FILE *fp。 if(p==NULL) printf(申請內(nèi)存出錯?。?! \n)。 fscanf(fp,%s,pstatus)。 p=(link *)malloc(sizeof(link))。pprice)。 fclose(fp)。 printf(\n** 歡迎使用圖書管理系統(tǒng) **\n)。 printf(\n 請選擇 )。 printf(\n** **\n)。 printf(\n** **\n)。 printf(\n** **\n)。 printf(\n** **\n)。 } //查詢系統(tǒng)菜單 void cxmenu() { printf(\n**************************************************\n)。 printf(\n** **\n)。 printf(\n 請選擇 )。 printf(\n** **\n)。 p=head。 printf(\n 編號 \t\t 書名 \t\t 作者 \t\t 出版社 \t\t 出版時間 \t\t 價格 \t\t 狀態(tài) \n)。 printf(\t\t%s,pstatus)。 FILE *fp。 } p=head。 fprintf(fp,%s\t%s\t%s\t%s\t%s,pnumber,pbookname,pauthor,ppublish,ptime)。 printf(信息已保存。 fp=fopen(查詢 .txt,a+)。 fprintf(fp,\n**************************************************\n)。 fprintf(fp,\t\t%.2f,pprice)。 printf(信息已保存 !!!)。 getchar()。h=hnext) { if(strcmp(key,hnumber)==0) { t1=h。 link *h,*t2=NULL。 for(h=head。 } } return t2。 getchar()。h=hnext) { if(strcmp(key,hauthor)==0) { t3=h。 h1=head。 } printf(請輸入添加圖書的信息 )。 scanf(%s%s%s%s%s,hnumber,hbookname,hauthor,hpublish,htime)。 hnext=h1。 if(temp==NULL) { printf(申請內(nèi)存出錯?。。?)。p=pnext) { for(q=pnext。 strcpy(tempauthor,pauthor)。 strcpy(tempstatus,pstatus)。 strcpy(ppublish,qpublish)。 strcpy(qnumber,tempnumber)。 strcpy(qtime,temptime)。 } //刪除一本圖書信息 link *delbook(link *head) { int k=0。 printf(請輸入要刪除圖書的書名 :)。p!=NULL。amp。k1) { tnext=pnext。 } } return h。 if(t==NULL) printf(沒有找到…… )。 printf(\n 編號 \t\t 書名 \t\t 作者 \t\t 出版社 \t\t 出版時間 \t\t 價格 \t\t 狀態(tài) \n)。 printf(\t\t%s,tstatus)。 printf(\n 編號 \t\t 作者 \t\t 出版社 \t\t 出版時間 \t\t 價格 \t\t 狀態(tài) \n)。tprice)。 printf(\n**************************************************\n)。 printf(\t\t%.2f,tprice)。 } //借書 link *borrowbook(link *head) { link *h,*p。 printf(\t\t 歡迎使用借書系統(tǒng) !!!\n)。 else { printf(確認借出? Y/N:)。 if(ch==39。) { strcpy(pstatus,ch2)。||ch==39。 } //還書 link *returnbook(link *head) { link *h,*p。 printf(\t\t 歡迎使用還書系統(tǒng) !!!\n)。 scanf(%c,amp。Y39。 printf(還書成功,請返回上級菜單保存信息?。?! )。n39
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1