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

正文內(nèi)容

課程設(shè)計--圖書售銷管理系統(tǒng)(編輯修改稿)

2025-02-13 03:34 本頁面
 

【文章內(nèi)容簡介】 分,最重要的是將一個具體的需求或問題設(shè)計算法表達(dá)出來。而且不但要解決問題,還要簡便,快捷。附錄includeincludeincludedefine N 100 struct bookInfo /*定義結(jié)構(gòu)體用于存儲圖書基本信息 */{ long id。 char name[20]。 char auther[10]。 char publish[20]。 float prices。}bookI[N]。int num_s=0。 /*書庫中圖書種類計數(shù) */int num=0。 /*基本信息中圖書種類計數(shù)*/ float sale_sum=0。 /*銷售總額 */float purchase_sum=0。 /*購買總額 */struct bookStore /* 定義結(jié)構(gòu)體用于存儲圖書庫存信息 */{ long id。 char name[20]。 char auther[10]。 int bookNum。}bookS[N]。void input_info() /*圖書基本信息錄入函數(shù) */{ while(1) { printf(請輸入圖書編號:)。 scanf(%ld,amp。bookI[num].id)。 printf(\n)。 getchar()。 printf(請輸入圖書名:)。 scanf(%s,bookI[num].name)。 printf(\n)。 printf(請輸入圖書作者:)。 scanf(%s,bookI[num].auther)。 printf(\n)。 printf(請輸入圖書出版社:)。 scanf(%s,bookI[num].publish)。 printf(\n)。 printf(請輸入圖書定價:)。 scanf(%f,amp。bookI[num].prices)。 printf(\n)。 num++。 printf(是否繼續(xù)? y/n \n)。 getchar()。 if(getchar()==39。n39。) break。 }}void displayInfo(int i) /*打印圖書基本信息函數(shù)*/ { printf(%10s%20s%10s%20s%10s\n,圖書編號,書名,作者,出版社,定價)。 printf(\n)。 printf(%10ld%20s%10s%20s%\n,bookI[i].id,bookI[i].name,bookI[i].auther,bookI[i].publish,bookI[i].prices)。}void displayStore(int i) /*打印圖書庫存信息函數(shù) */{ printf(%10s%20s%10s%10s\n,圖書編號,書名,作者,庫存)。 printf(\n)。 printf(%10ld%20s%10s%10ld\n,bookS[i].id,bookS[i].name,bookS[i].auther,bookS[i].bookNum)。}void query_info() /*查詢基本信息函數(shù) */{ int choice3,i。 printf(\n)。 printf(\n)。 scanf(%d,amp。choice3)。 switch(choice3) { case 1: i=search_bynameInfo()。 if(i==1) printf(error\n)。 else displayInfo(i)。 break。 case 2: i=search_byidInfo()。 if(i==1) printf(error\n)。 else displayInfo(i)。 break。 } }void query_store() /*查詢圖書庫存函數(shù) */{ printf(\n)。 printf(\n)。 int choice4,i。 scanf(%d,amp。choice4)。 switch(choice4) { case 1: i=search_bynameStore()。 if(i==1) printf(error\n)。
點擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1