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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)--圖書(shū)管理-全文預(yù)覽

  

【正文】 next。/*以只寫(xiě)方式打開(kāi)二進(jìn)制文件*/if(fp==NULL) /*打開(kāi)文件失敗*/{printf(\n=====open file error!\n)。}void Saveoi(Blink b){FILE *fp。getchar()。}else{ break。return 。int count=0。getchar()。s record number is:%d\n,count)。 count++。getchar()。Node *p。Disp(l)。stringinput(p,15,Publishing pany:)。p=numberinput(the price of book:)。 /*查詢(xún)到該節(jié)點(diǎn)*/if(p) /*若p!=NULL,表明已經(jīng)找到該節(jié)點(diǎn)*/{printf(Number:%s,\n,p)。printf(modify book recorder)。printf(\n=====No book record!\n)。getchar()。 getchar()。 while(rnext!=p) r=rnext。 getchar()。/*將p所指節(jié)點(diǎn)從鏈表中去除*/ free(p)。p=Locate(l,findmess,num)。printf( please choice[1,2]:)。return。char findmess[20]。}elseWrong()。 printf(press any key to return)。p=Locate(l,searchinput,name)。 getchar()。if(p) /*若p!=NULL*/{ printheader()。scanf(%d,amp。return。Node *p。 /*將新結(jié)點(diǎn)插入鏈表中*/r=p。 /*將會(huì)員號(hào)拷貝到p*/stringinput(p,15,Name:)。}}p=(Mnode *)malloc(sizeof(Mnode))。Y39。ch)。 } s=snext。if(strcmp(num,0)==0) /*輸入為0,則退出添加操作,返回菜單界面*/ {return。 /*將指針移至于鏈表最末尾,準(zhǔn)備添加記錄*/while(1) /*可輸入多條記錄,輸入0時(shí)退出添加操作*/{while(1){stringinput(num,10,input the number of the member(press 39。s=mnext。}void Addmember(Mlink m){FILE *fp。/*輸入圖書(shū)數(shù)量到p*/pnext=NULL。/*輸入圖書(shū)名稱(chēng)到p*/p=numberinput(price:)。 /*申請(qǐng)內(nèi)存空間*/if(!p) { printf(\n allocate memory failure )。) continue。 if(ch==39。 }if(flag==1) /*提示用戶(hù)是否重新輸入*/ { getchar()。}s=lnext。039。system(cls)。}void Add(Link l)/*增加圖書(shū)記錄*/{Node *p,*r,*s。t)。 strcpy(t,n)。 do{ printf(notice)。while(r){ if(strcmp(r,findmess)==0) return r。if(strcmp(nameornum,num)==0) /*按書(shū)號(hào)查詢(xún)*/{r=lnext。p=pnext。printf(HEADER4)。if(!p) /*p==NULL證明沒(méi)有會(huì)員記錄*/{printf(\n=====Not record!\n)。printf(HEADER3)。printf(HEADER2)。getchar()。}void Nofind() /*輸出未查找此學(xué)生的信息*/{printf(\n=====Not find this record!\n)。p=pp。}void printheader() /*格式化輸出表頭*/{printf(HEADER1)。printf(\t* 5 Add member 6 borrow book *\n)。 /*清屏*/printf( Book Management System \n)。typedef struct bnode/*定義借書(shū)信息鏈表的結(jié)點(diǎn)結(jié)構(gòu)*/{struct borrow binf。 /*指針域*/}Node,*Link。/*書(shū)號(hào)*/char name[15]。/*聯(lián)系電話(huà)*/}。/*數(shù)量*/}。 /*書(shū)名*/int price。二、 概要設(shè)計(jì) 整體設(shè)計(jì)經(jīng)過(guò)需求分析,本系統(tǒng)分為兩大模塊:書(shū)籍管理模塊和會(huì)員管理模塊。C語(yǔ)言課程設(shè)計(jì)系 別 計(jì)算機(jī)科學(xué)與技術(shù)系專(zhuān)業(yè)班級(jí) 嵌入式軟件1108班姓 名 溫小琴指導(dǎo)老師 繆寧 2012年6月20日一、 需求分析 依據(jù)題目要求以及中國(guó)書(shū)的需求,應(yīng)將該系統(tǒng)分為兩大模塊:圖書(shū)管理和會(huì)員管理。 界面應(yīng)該具有友善、直觀(guān)、易操作等特點(diǎn),本系統(tǒng)采用數(shù)字輸入選擇操作。 /*書(shū)號(hào)*/char name[15]。 /*出版社*/int number。/*會(huì)員姓名*/char tel[15]。/*會(huì)員姓名*/char num[10]。 /*數(shù)據(jù)域*/struct node *next。}Mnode,*Mlink。void menu() /*主菜單*/{system(cls)。printf(\t* 3 search book 4 modify record *\n)。printf(\t***************************************************************\n)。}void printdata(Node *pp) /*格式化輸出表中數(shù)據(jù)*/{Node* p。getchar()。if(!p) /*p==NULL則說(shuō)明暫無(wú)記錄*/{printf(\n=====Not record!\n)。printf(HEADER1)。p=pnext。p=mnext。}printf(\n\n)。while(p) /*逐條輸出鏈表中存儲(chǔ)的會(huì)員信息*/{printf(FORMAT1,p,p,p)。}Node* Locate(Link l,char findmess[],char nameornum[])
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1