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

正文內(nèi)容

c語(yǔ)言程序設(shè)計(jì)課程設(shè)計(jì)報(bào)告(圖書(shū)信息管理系統(tǒng))-資料下載頁(yè)

2025-08-07 15:09本頁(yè)面
  

【正文】 ......................................刪除功能...................................................*/struct bookinf * Delete(struct bookinf * head) //刪除{ struct bookinf * ptr1,* ptr2。 //定義 指針1 2 int num。 printf(Input num:\n)。 scanf(%ld,amp。num)。 if(head==NULL) //鏈表空 return NULL。 else { while(head!=NULL amp。amp。 headnum==num) //要被刪除結(jié)點(diǎn)為表頭結(jié)點(diǎn) { ptr2=head。 head=headnext。 printf( num bname wname clanum pub pubtime price\n)。 printf(%5ld %10s %10s %10s %10s %10s %8f\n,ptr2num,ptr2bname,ptr2wname, //字節(jié) ptr2clanum,ptr2pub,ptr2pubtime,ptr2price)。 free(ptr2)。 //釋放 } //要被刪除結(jié)點(diǎn)為非表頭結(jié)點(diǎn) ptr1=head。 ptr2=headnext。 while(ptr2!=NULL) //指針2非空 { if(ptr2num==num) //ptr2所指結(jié)點(diǎn)符合刪除要求 { ptr1next=ptr2next。 printf( num bname wname clanum pub pubtime price\n)。 printf(%5ld %10s %10s %10s %10s %10s %8f\n,ptr2num,ptr2bname,ptr2wname, ptr2clanum,ptr2pub,ptr2pubtime,ptr2price)。 free(ptr2)。 } else ptr1=ptr2。 //ptr1后移一個(gè)節(jié)點(diǎn) ptr2=ptr1next。 //ptr2指向ptr1的后一個(gè)節(jié)點(diǎn) } } return head。}main(){ struct bookinf * head=NULL,* p。 char choice。 size=sizeof(struct bookinf)。 inputchoice()。 scanf(%s,amp。choice)。 while(choice!=39。039。) { switch(choice) { case 39。139。: head=vitil()。 //把數(shù)據(jù)從文件中取出來(lái) head=Enter(head)。 //增加數(shù)據(jù) write_to_txt(head)。 //寫(xiě)入文件 break。 case 39。239。: head=vitil()。 //把數(shù)據(jù)從文件中取出來(lái) Check(head)。 //查詢 break。 case 39。339。: head=vitil()。 //把數(shù)據(jù)從文件中取出來(lái) Ptrint_Stu_Doc(head)。 //瀏覽 break。 case 39。439。: head=vitil()。 //把數(shù)據(jù)從文件中取出來(lái) head=Revise(head)。 //修改 write_to_txt(head)。 break。 case 39。539。: head=vitil()。 //把數(shù)據(jù)從文件中取出來(lái) head=Delete(head)。 //刪除 write_to_txt(head)。 break。 case 39。639。: head=Enter(head)。 write_to_txt(head)。 break。 default: printf(Enter error!\n)。 break。 } inputchoice()。 scanf(%s,amp。choice)。 } while(head!=NULL) //釋放鏈表 { p=head。 head=headnext。 free(p)。 }}
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1