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

正文內(nèi)容

c語言圖書管理系統(tǒng)實(shí)驗(yàn)報(bào)告-在線瀏覽

2025-03-30 07:39本頁面
  

【正文】 4 ( 3)程序結(jié)構(gòu) 主菜單 開始 輸入 創(chuàng)建圖書 查找 書名查找 作者查找 組合查找 刪除圖書 修改圖書 顯示圖書 退出 5 3 詳細(xì)設(shè)計(jì) 函數(shù)的原型: void menu() 函數(shù)的功能:調(diào)用菜單,使用各項(xiàng)功能 程序: void menu(){ printf(\n\n******************************* 圖 書 信 息 管 理 系統(tǒng) *******************************\n)。 printf(\t\t\t 1 ; 創(chuàng) 建 圖 書 信 息 \n)。 printf(\t\t\t 3 ; 刪 除 圖 書 信 息 \n)。 printf(\t\t\t 5 ; 顯 示 圖 書 信 息 \n)。 printf(\t\t\t 0 ; 退 出 \n)。 } 6 函數(shù)的原型: int ReadinfoFromFile() 函數(shù)的功能:建立文件儲存數(shù)據(jù) 程序 int ReadinfoFromFile() //讀入數(shù)據(jù) { FILE *fp=NULL。 //結(jié)構(gòu)體指針 int i。 fp=fopen(,w)。 } fscanf(fp,%d,amp。 ////從文件中分別讀入圖書信息統(tǒng)計(jì)數(shù),以便于下面for 循環(huán)的條件控制 for(i=0。i++){ p=(struct fi_info*)malloc(sizeof(struct fi_info))。 fscanf(fp,%s,pwriter)。 fscanf(fp,%s,amp。 fscanf(fp,%s,pchuban)。pchubantime)。pprice)。ptype)。 pnext=NULL。 head=p。 pnext=NULL。 head_=p。 return 0。 8 p=(struct fi_info*)malloc(sizeof(struct fi_info))。 scanf(%s,pname)。 scanf(%s,pwriter)。 scanf(%s,pshuhao)。 scanf(%s,amp。 printf(請輸入出版社: )。 printf(請輸入出版時(shí)間: )。pchubantime)。 scanf(%f,amp。 ptype=news。 pnext=head。 return 0。 程序: void chazhao() //查找圖書信息 { struct fi_info *p=NULL。 9 int price。 printf(按書名查找請按 1.\n按作者名查找請按 2.\n按組合查詢請按 3.\n)。i)。 scanf(%s,name)。p!=NULL。 //若存在,則 b=0 printf(找到要查找的圖書信息 :\n)。 printf(圖書作者 %s\n,pwriter)。 printf(圖書分類 %s\n,pfenlei)。 printf(出版時(shí)間 %d\n,pchubantime)。 } } if(head==NULL) printf(查無此書 \n)。 //若 b=1,則不存在 } else if(i==2) { printf(請輸入要查找的作者名 :)。 10 for(p=head。p=pnext) //一個(gè)鏈表指針 p的遍歷,直到結(jié)尾 p==NULL { if(strcmp(writer,pwriter)==0) //字符串的比較函數(shù),若前后相等則等于 0 { b=0。 printf(圖書名稱 %s\n,pname)。 printf(圖書書號 %s\n,pshuhao)。 printf(出版社 %s\n,pchuban)。 printf(圖書價(jià)格 %.2f\n,pprice)。 if(b) print
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1