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

正文內(nèi)容

c語言課程設(shè)計(jì)圖書信息管理系統(tǒng)(編輯修改稿)

2024-09-03 10:06 本頁面
 

【文章內(nèi)容簡介】 *******************************\n)。 printf(\t\t\t 1;錄入圖書信息\n)。 printf(\t\t\t 2;查找圖書信息\n)。 printf(\t\t\t 3;刪除圖書信息\n)。 printf(\t\t\t 4;修改圖書信息\n)。 printf(\t\t\t 5;顯示圖書信息\n)。 printf(\t\t\t 0;退出 \n)。 }int creat_news() //添加圖書信息 { struct fi_info *p=NULL。 p=(struct fi_info*)malloc(sizeof(struct fi_info))。 printf(請輸入書名:)。 scanf(%s,pname)。 printf(請輸入作者名:)。 scanf(%s,pwriter)。 printf(請輸入分類號:)。 scanf(%d,amp。ptypenum)。 printf(請輸入出版單位:)。 scanf(%s,ppublish_from)。 printf(請輸入出版時間:)。 scanf(%d,amp。ppublish_time)。 printf(請輸入書本價(jià)格:)。 scanf(%f,amp。pprice)。 ptype=news。 Book_num+=1。 pnext=head。 head=p。 return 0。}void search_news() //查詢圖書信息 { struct fi_info *p=NULL。 char name[10],writer[21]。 int price。 int b=1,i。 printf(按書名查找請按1.\n按作者名查找請按2.\n按組合查詢請按3.\n)。 scanf(%d,amp。i)。 if(i=1) { printf(請輸入要查找的書名:)。 scanf(%s,name)。 for(p=head。p!=NULL。p=pnext) //一個鏈表指針p的遍歷,直到結(jié)尾p==NULL { if(strcmp(name,pname)==0) //字符串的比較函數(shù),若前后相等則等于0 { b=0。 //若存在,則b=0 printf(你找到了要查找的圖書信息:\n)。 printf(%s\n,pname)。 printf(%s\n,pwriter)。 printf(%d\n,ptypenum)。 printf(%s\n,ppublish_from)。 printf(%d\n,ppublish_time)。 printf(%f\n,pprice)。 } } if(head==NULL) printf(沒有此圖書信息\n)。 if(b) printf(你要查找的圖書信息不存在!\n)。 //若b=1,則不存在 }else if(i=2){ printf(請輸入要查找的作者名:)。 scanf(%s,writer)。 for(p=head。p!=NULL。p=pnext) //一個鏈表指針p的遍歷,直到結(jié)尾p==NULL { if(strcmp(writer,pwriter)==0) //字符串的比較函數(shù),若前后相等則等于0 { b=0。 //若存在,則b=0 printf(你找到了要查找的圖書信息:\n)。 printf(%s\n,pname)。 printf(%s\n,pwriter)。 printf(%d\n,ptypenum)。
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1