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

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)-圖書管理系統(tǒng)-源代碼-閱讀頁(yè)

2024-08-27 06:01本頁(yè)面
  

【正文】 +++++++|\n)。 printf( | 3 按價(jià)格查詢圖書信息 ** ** 0 還回主菜單 |\n)。 scanf (%d,amp。 system(cls)。break。break。break。break。 printf(選擇有誤,默認(rèn)返回主菜單,請(qǐng)重新選擇:\n)。 }break。 int x。 do { found=0。 printf(請(qǐng)輸入需要查找的圖書的編號(hào):)。num)。 while(p!=NULL) { if(pnum==num) { if(found==0) printf(\n編號(hào) 類別 書名 作者 出版社 出版時(shí)間 價(jià)格\n)。 found=1。 } if(found==0) /* 若不為頭節(jié)點(diǎn) found不變 繼續(xù)往后面查找 */ printf(編號(hào)為 %d 的圖書未找到!\n,num)。 scanf(%d,amp。 if(x==0) flag=0。 if(x!=1amp。x!=0) flag=2。 /* flag為判斷是否需要繼續(xù)的函數(shù) 繼續(xù)查找時(shí) flag為1 用dowhile控制循環(huán) */ if(flag==0) { system(cls)。 } if(flag==2) { system(cls)。 inputchioce()。 char name[30]。 struct tushu_node*p。 p=h。 scanf( %s,name)。 while(p!=NULL) { if(strcmp(pname,name)==0) { if(found==0) printf(\n編號(hào) 類別 書名 作者 出版社 出版時(shí)間 價(jià)格\n)。 found=1。 } if(found==0) printf(書名為《%s》的圖書未找到!\n,name)。 scanf(%d,amp。 if(x==0) flag=0。 if(x!=1amp。x!=0) flag=2。 if(flag==0) { system(cls)。} if(flag==2) { system(cls)。 inputchioce()。 double price。 struct tushu_node*p。 p=h。 scanf( %lf,amp。 printf(\n)。 printf(%d %s %s %s %s %s %lf\n,pnum,pleibie,pname,pauthor,ppress,ptime,pprice)。 } p=pnext。 printf(\n\n是否繼續(xù)查找?(繼續(xù)1/返回主菜單0))。x)。 if(x==1) flag=1。amp。 }while(flag==1)。 inputchioce()。 printf(選擇有誤,默認(rèn)返回主菜單,請(qǐng)重新選擇:\n)。 }}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/void paixutushu() /* 為圖書排序的函數(shù) */{ int k。 struct tushu_node*head=NULL。n)。 printf( | 1 按價(jià)格為圖書排序 ** ** 2 按出版時(shí)間為圖書排序 |\n)。 printf(請(qǐng)你再次選擇具體操作:)。k)。 /* 清屏*/ switch(k) { case 1: { head=paixutushu_price(head)。break。 sfjx()。} case 0: { inputchioce()。} default: { system(cls)。 inputchioce()。 }}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/struct tushu_node* paixutushu_price(struct tushu_node *head) /* 為圖書按價(jià)格排序的函數(shù) */{ int n。 int i,j。 n=tongjitushu_shumu()。 p2=headnext。 if(p2next==NULL) { if(p1pricep2price) return head。 p1next=NULL。 save(head)。 return head。in。p4next=head。 p1=head。 for(j=0。j++) { if(p2pricep1price) { p3=p1。 p2=p2next。 p1next=p2next。 p2next =p1。 p2=p1next。free(p4)。 printf(\n\n按價(jià)格排序 操作已完成 并保存完畢\n是否繼續(xù)操作? 請(qǐng)選擇(繼續(xù)1/退出0))。} /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/void sfjx() /* 寫個(gè)小函數(shù),判斷是否繼續(xù),讓程序更完美 */{ int x=1。x)。 inputchioce()。 exit(0)。amp。 printf(選擇有誤,默認(rèn)返回主菜單,請(qǐng)重新選擇:\n)。 }}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/struct tushu_node* paixutushu_time(struct tushu_node *head) /* 為圖書按出版時(shí)間排序的函數(shù) */{ int n。 int i,j。 n=tongjitushu_shumu()。 p2=headnext。 if(p2next==NULL) { if(strcmp(p1time,p2time)0) return head。 p1next=NULL。 save(head)。 return head。in。p4next=head。 p1=head。 for(j=0。j++) { if(strcmp(p1time,p2time)0) { p3=p1。 p2=p2next。 p1next=p2next。 p2next =p1。 p2=p1next。free(p4)。 printf(\n\n 按出版時(shí)間排序 操作已完成 并保存完畢\n是否繼續(xù)操作? 請(qǐng)選擇(繼續(xù)1/退出0))。} /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/int tongjitushu_shumu() /* 統(tǒng)計(jì)圖書數(shù)目的函數(shù) */ { int num。 char name[30]。 char press[20]。 double price。 if((fpp=fopen(,r))==NULL) { printf( 打開(kāi)文件失敗 ! )。 } else { while(!feof(fpp)) { fscanf(fpp,%d%s%s%s%s%s%lf,amp。price)。 } } if(fclose(fpp)) { printf(關(guān)閉文件失敗!\n)。 } printf(共有%d本圖書,n1)。}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*//*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*//*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/void shiyongshuoming() /* 使用說(shuō)明的函數(shù) */{ int x=1。 printf(\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~使用說(shuō)明~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n )。 printf(的機(jī)會(huì),在三次內(nèi)輸入正確密碼即可獲得使用權(quán)限,三次輸入錯(cuò)誤后,系統(tǒng)將自動(dòng)退出。 printf(包括錄入圖書信息;查詢圖書信息;瀏覽圖書信息;為圖書按規(guī)則排序排序等。 printf(對(duì)圖書信息的創(chuàng)建、刪除和修改,查詢和排序的子菜單中又包括具體的按某種方式查詢和排序以及返回主菜單的具體選項(xiàng)。 printf(\n ,完成后又有是否繼續(xù)或者返回主菜單的詢問(wèn)。 printf(打開(kāi)一次系統(tǒng)進(jìn)行多項(xiàng)操作。 printf()。 printf(\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n )。 scanf(%d,amp。 if(x==1) { system(cls)。 } if(x==0) { printf(\n\n謝謝你的使用! 再見(jiàn)\n)。 } if(x!=1amp。x!=0) { system(cls)。 inputchioce(
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1