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

正文內(nèi)容

珠寶銷售管理信息系統(tǒng)課程設(shè)計-在線瀏覽

2025-02-17 21:27本頁面
  

【正文】 刪除 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 16 采購進貨管理是珠寶首飾銷售管理系統(tǒng)的功能之一主要包括進貨登記、進貨查詢等基本操作。 /*定義指向文件的指針 */ product TmpS。 管理自己的用戶信息 錯誤 !未找到引用源。 /*存儲珠寶信息的文件名 */ int count = 1。 printf(\n Notice:Name of file can39。t exceed 3 characters,part of exceed will be discarded.\n)。 /*如顧客沒有輸入,則循環(huán)提示顧客輸入 */ while(*DataFile == (39。)) { printf(\n please input new file name to store data,end with enter.)。t exceed 8 characters,suffix can39。 gets(DataFile)。/*a+:當(dāng)文件存在時,追加,當(dāng)文件不存在時,創(chuàng)建 */ /*如果當(dāng)前文件不存在,提示打開文件失敗 */ if (fp == NULL) { printf(\n Open file %s fail!End with any key.\n,DataFile)。 getch()。 } /*如果成功打開或創(chuàng)建文件,則提示輸入商品序號、名稱、價格要素等相關(guān)信息 */ printf(input number,name and is 0 means input is end.\n)。 /*循環(huán)從鍵盤上讀取顧客輸入的序號、名稱、價格要 素等相關(guān)信息 */ while(count = SIZE) { /*輸入序號,如為 0 則停止輸入 */ printf(\n input 39。 means end input.\n)。 scanf(%ld,amp。 if ( == 0 ) break。 scanf(%s,)。 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 19 scanf(%f,amp。 /*提示輸入商品折扣 */ printf(discount=)。)。 printf(\n)。TmpS,sizeof(product),1,fp)!=1) { printf(\nwrite file %s fail!End with any key\n,DataFile)。 getch()。 } count++。 fclose(fp)。*/ printf(The data you input is store successful %s in file.\n,DataFile)。 fp=fopen(DataFile,rb)。 perror(Open file fail)。 exit(1)。 while(fread(amp。 } fclose(fp)。 user Show。 char DataFile[40] = yonghu。 /*計算可輸入數(shù)據(jù)的最大范圍 */ fp = fopen(DataFile,ab+)。 perror(Open file fail)。 exit(1)。 printf(Number is not exceed 9 figures,Name is not exceed 20 characters,range of grade:~\n)。number =039。 printf(number=)。)。 printf(name=)。 printf(ps=)。 printf(power=)。)。 /*如遇無法寫入文件的異常,則加以提示 */ if(fwrite(amp。 perror(Write file fail )。 exit(1)。 } /*如果輸入的數(shù)據(jù)量超過最大允許的范圍,則提示數(shù)據(jù)不能錄入 */ if (countSIZE) printf(\nsorry,number of data can not exceed%d\n,SIZE)。 /*====在屏幕上顯示文件內(nèi)容 ====*/ printf(The data you input is store successful %s in file.\n,DataFile)。 fp=fopen(DataFile,rb)。 perror(Open file fail)。 exit(1)。 while(fread(amp。 } fclose(fp)。 /*存放客戶選項的變量 */ /*====功能及操作的界面提示 ====*/ while(1) { 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 22 printf(\n)。 printf(| Wele to Product Management System |\n)。 printf(||\n)。 printf(| 2. AddProduct() |\n)。 printf(| 4. QueryByProductName() |\n)。 printf(| 6. ModifyByProductNumber() |\n)。 printf(++++++++++++++++++++++++++++++++++++++++++++++++++++\n)。 printf(| () |\n)。 printf(| () |\n)。 printf(| () |\n)。 printf(| 0. Exit System |\n)。 printf( Please Input Your Choose \n)。 printf( number 11,12,13,14,15 to Manage the System User \n)。 printf(\n)。choice)。 /*根據(jù)客戶選項調(diào)用相應(yīng)函數(shù) */ switch(choice) { case 1: CreatFile()。 case 2: AddRecord()。 case 3: DelRecord()。 case 4: 華科學(xué)院數(shù)據(jù)庫課程設(shè)計 23 QueryByName()。 case 5: QueryBySeatNum()。 case 6: ModifyByNumber()。 case 7: SortByMemberPrice()。 case 11: CreatUser()。 case 12: AddUser()。 case 13: DelUser()。 case 14: ModifyByUserNumber()。 case 15: SortByUserNum()。 case 0: exit(0)。 } } } /*:用于創(chuàng)建商品信息文件 */ include /*函數(shù) CreatFile*/ void CreatFile() { FILE *fp = NULL。 /*定義進行操作時存放結(jié)構(gòu)體變量的 */ char DataFile[40] = 。 /*計算可輸入數(shù)據(jù)的最大范圍
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1