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

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)-圖書(shū)管理系統(tǒng)-源代碼-在線瀏覽

2024-09-18 06:01本頁(yè)面
  

【正文】 if(head==NULL) head=p。 tail=p。 scanf(%d,amp。 if(num!=0) { scanf(%s%s%s%s%s%lf,leibie,name,author,press,time,amp。 } } if(num==0) /* 若判斷數(shù)字為0,則退出 */ { system(cls)。 inputchioce()。 }/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/void save1(struct tushu_node* p1){ /* 將鏈表保存為文件的函數(shù) 不覆蓋以前的信息 */ if( (fpp=fopen(,a))==NULL ) { printf(打開(kāi)文件失敗!)。 } while(p1!=NULL) { fprintf(fpp, %d %s %s %s %s %s %lf \n,p1num,p1leibie,p1name,p1author,p1press,p1time,p1price)。 } if(fclose(fpp)) { printf(關(guān)閉文件失?。n)。 }}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/void save(struct tushu_node* p1) /* 將鏈表保存為文件的函數(shù) 覆蓋以前的信息 */{ if(( fpp=fopen(,w))==NULL ) { printf(打開(kāi)文件失??!)。 } while(p1!=NULL) { fprintf(fpp, %d %s %s %s %s %s %lf \n,p1num,p1leibie,p1name,p1author,p1press,p1time,p1price)。 } if(fclose(fpp)) { printf(關(guān)閉文件失??!\n)。 }}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/struct tushu_node * luruxinxi_shanchu() /* 刪除某本圖書(shū)信息(按編號(hào)刪除) */{ int x=1,n=0。 int num。 char name[30]。 char press[20]。 double price。 struct tushu_node*head=NULL。 /* 刪除前 先遍歷所有圖書(shū),方便看清要?jiǎng)h除哪一本*/ if((fpp=fopen(,r))==NULL) /* 輸入要?jiǎng)h除的圖書(shū)編號(hào)之前 先遍歷所有圖書(shū)信息 */ { printf( 打開(kāi)文件失敗 ! )。 } else { printf(\n\n編號(hào) 類(lèi)別 書(shū)名 作者 出版社 出版時(shí)間 價(jià)格\n)。num,leibie,name,author,press,time,amp。 printf(%d %s %s %s %s %s %lf\n,num,leibie,name,author,press,time,price)。 exit(0)。n)。 scanf(%d,amp。 while(head!=NULLamp。headnum==numm) { ptr2=head。 free(ptr2)。 ptr1=head。 while(ptr2!=NULL) { if(ptr2num==numm) { ptr1next=ptr2next。 } else ptr1=ptr2。 } save(head)。 printf(\n\n是否繼續(xù)操作? 請(qǐng)選擇(繼續(xù)1/退出0))。x)。 inputchioce()。 exit (0)。amp。 printf(選擇有誤,默認(rèn)返回主菜單,請(qǐng)重新選擇:\n)。 } return head。 int num。 char leibie[10]。 char author[20]。 char time[20]。 struct tushu_node*head=NULL。 printf(\n所有的圖書(shū)信息如下:\n)。 exit(0)。 while(!feof(fpp)) { fscanf(fpp,%d%s%s%s%s%s%lf,amp。price)。 } } if(fclose(fpp)) { printf(關(guān)閉文件失??!\n)。 } printf(\n輸入需要修改的圖書(shū)的編號(hào):)。numm)。 /* 先遍歷后選擇完要修改的圖書(shū)編號(hào)后 清屏*/ head=wjtolb(head,amp。 printf(\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf(3修改圖書(shū)書(shū)名 4修改圖書(shū)作者\(yùn)n)。 printf(7修改圖書(shū)價(jià)格 \n)。 printf(編號(hào)為%d本圖書(shū)的信息為:\n,numm)。amp。 printf(%d %s %s %s %s %s %lf\n,headnum,headleibie,headname,headauthor,headpress,headtime,headprice)。 scanf(%d,amp。 switch(t) { case 1: { printf( 請(qǐng)輸入圖書(shū)%d的新編號(hào):\n,numm)。num)。break。 scanf(%s,leibie)。break。 scanf(%s,name)。break。 scanf(%s,author)。break。 scanf(%s,press)。break。 scanf(%s,time)。break。 scanf(%lf,amp。 headprice=price。} default: { system(cls)。 inputchioce()。 } save(head)。 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()。} //do 用dowhile語(yǔ)句事不能對(duì)第二本圖書(shū)進(jìn)行修改 //{p=pnext。amp。 while(p!=NULLamp。pnum!=numm) { p=pnext。amp。 printf(%d %s %s %s %s %s %lf\n, pnum,pleibie,pname,pauthor,ppress,ptime,pprice)。 scanf(%d,amp。 switch(t) { case 1: { printf( 請(qǐng)輸入圖書(shū)%d的新編號(hào):\n,numm)。num)。break。 scanf(%s,leibie)。break。 scanf(%s,name)。break。 scanf(%s,author)。break。 scanf(%s,press)。break。 scanf(%s,time)。break。 scanf(%lf,amp。 pprice=price。} default: { system(cls)。 inputchioce()。 } save(head)。 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()。}/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/int liulantushu() /* 瀏覽圖書(shū)信息的函數(shù) */ { int num。 char name[30]。 char press[20]。 double price。 if( (fpp=fopen(,r))==NULL ) { printf( 打開(kāi)文件失敗 ! )。 } else { printf(\n\n編號(hào) 類(lèi)別 書(shū)名 作者 出版社 出版時(shí)間 價(jià)格\n)。num,leibie,name,author,press,time,amp。 printf(%d\t%s\t%s\t%s\t%s\t%s\t%lf\n,num,leibie,name,author,press,time,price)。 exit(0)。 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()。 int n=0。 head=wjtolb(head,amp。 printf( |++++++++++++++++++++++++++++ 查詢圖書(shū)信息+++++++++++++++++++++++++
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1