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

正文內(nèi)容

珠寶銷售管理信息系統(tǒng)課程設(shè)計-文庫吧

2025-11-11 21:27 本頁面


【正文】 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 17 程序流程圖 圖 331 珠寶銷售管理系統(tǒng)程序流程圖 主要代碼 /*:添加珠寶信息記錄 */ include void AddRecord() { FILE *fp = NULL。 /*定義指向文件的指針 */ product TmpS。 /*定義進行操作時的臨時結(jié)構(gòu)體變量 */ 開始 用戶登錄 讀取用戶類型 錯誤 !未找到引用源。 管理自己的用戶信息 錯誤 !未找到引用源。 管理普通用戶的信息 管理自己的用戶信息 基本信息管理 采購進貨管理 預(yù)訂信息管理 客戶信息管理 庫存信息管理理 會員信息管理 其他費用管理 失敗超過 3 次 退出程序 重試 否 失敗 成功 Admin 用戶 普通用戶 是 用戶管理模塊 珠寶銷售管理模塊 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 18 char DataFile[40] = 。 /*存儲珠寶信息的文件名 */ int count = 1。 /*計算可輸入數(shù)據(jù)的最大范圍 */ /*====輸入要添加商品信息的文件名 ====*/ printf(\n please input the product information file name to add record:)。 printf(\n Notice:Name of file can39。t exceed 8 can39。t exceed 3 characters,part of exceed will be discarded.\n)。 gets(DataFile)。 /*如顧客沒有輸入,則循環(huán)提示顧客輸入 */ while(*DataFile == (39。\039。)) { printf(\n please input new file name to store data,end with enter.)。 printf(\n Notice:Name of file can39。t exceed 8 characters,suffix can39。t exceed 3 of exceed will be discarded.\n)。 gets(DataFile)。 } fp = fopen(DataFile,a+)。/*a+:當(dāng)文件存在時,追加,當(dāng)文件不存在時,創(chuàng)建 */ /*如果當(dāng)前文件不存在,提示打開文件失敗 */ if (fp == NULL) { printf(\n Open file %s fail!End with any key.\n,DataFile)。 perror(Open file fail)。 getch()。 exit(1)。 } /*如果成功打開或創(chuàng)建文件,則提示輸入商品序號、名稱、價格要素等相關(guān)信息 */ printf(input number,name and is 0 means input is end.\n)。 printf(Number is not exceed 9 figures,Name is not exceed 20 characters,range of grade:~\n)。 /*循環(huán)從鍵盤上讀取顧客輸入的序號、名稱、價格要 素等相關(guān)信息 */ while(count = SIZE) { /*輸入序號,如為 0 則停止輸入 */ printf(\n input 39。number =039。 means end input.\n)。 printf(number=)。 scanf(%ld,amp。)。 if ( == 0 ) break。 /*提示輸入商品名稱 */ printf(name=)。 scanf(%s,)。 /*提示輸入商品價格 */ printf(price=)。 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 19 scanf(%f,amp。)。 /*提示輸入商品折扣 */ printf(discount=)。 scanf(%f,amp。)。 /*用公式自動計算商品會員價 */ =*。 printf(\n)。 /*如遇無法寫入文件的異常,則加以提示 */ if(fwrite(amp。TmpS,sizeof(product),1,fp)!=1) { printf(\nwrite file %s fail!End with any key\n,DataFile)。 perror(Write file fail )。 getch()。 exit(1)。 } count++。 } /*如果輸入的數(shù)據(jù)量超過最大允許的范圍,則提示數(shù)據(jù)不能錄入 */ if (countSIZE) printf(\nsorry,number of data can not exceed%d\n,SIZE)。 fclose(fp)。 /*====在屏幕上顯示文件內(nèi)容 ====*/ /* clrscr()。*/ printf(The data you input is store successful %s in file.\n,DataFile)。 printf(Content as follow:\n)。 fp=fopen(DataFile,rb)。 if (fp == NULL) { printf(\nOpen file%sfail!End with any key \n,DataFile)。 perror(Open file fail)。 getch()。 exit(1)。 } printf(\nNumber\tName\tprice\tdiscountmemberprice\n)。 while(fread(amp。TmpS,sizeof(product),1,fp) != (int)NULL) { printf(\n%ld\t%s\t%\t%\t%\n,unt,)。 } fclose(fp)。 } /* 增加用戶信息記錄 */ 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 20 include void AddUser() { FILE *fp = NULL。 user Show。 user TmpS。 char DataFile[40] = yonghu。/*存儲用戶信息文件名 */ int count = 1。 /*計算可輸入數(shù)據(jù)的最大范圍 */ fp = fopen(DataFile,ab+)。/*a+:當(dāng)文件存在時,追加,當(dāng)文件不存在時,創(chuàng)建 */ /*如果當(dāng)前文件不存在,提示打開文件失敗 */ if (fp == NULL) { printf(\n Open file %s fail!End with any key.\n,DataFile)。 perror(Open file fail)。 getch()。 exit(1)。 } /*如果成功打開文件,則提示輸入用戶相關(guān)信息 */ printf(input number,name and is 0 means input is end.\n)。 printf(Number is not exceed 9 figures,Name is not exceed 20 characters,range of grade:~\n)。 /*循環(huán)從鍵盤上讀取用戶 輸入的用戶相關(guān)信息 */ while(count = SIZE) { printf(\n input 39。number =039。 means end input.\n)。 printf(number=)。 scanf(%ld,amp。)。 if ( == 0 ) break。 printf(name=)。 scanf(%s,) getchar()。 printf(ps=)。 scanf(%s,)。 printf(power=)。 scanf(%d,amp。)。 printf(\n)。 /*如遇無法寫入文件的異常,則加以提示 */ if(fwrite(amp。TmpS,sizeof(user),1,fp)!=1) { printf(\nwrite file %s fail!End with an
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1