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

正文內(nèi)容

服裝銷售管理系統(tǒng)—c語言課程設(shè)計-免費閱讀

2025-08-29 07:39 上一頁面

下一頁面
  

【正文】 //添加商品信息void InputAndAddProduct() { Products product。 case SELL_USER_TYPE: SellOperationMenu()。 case 4: ModifyProduct()。 scanf(%d,amp。 printf( (1)商品信息查看\n)。sellInfo)) { printf(商品銷售成功!\n)。)。 system(pause)。 printf(請依次輸入以下銷售信息:\n)。 printf(商品附加信息: %s\n,tmpProductmemo)。 else{ while(NULL != tmpProduct) { printf(*********************************************************\n)。 break。 continue。 printf( (5)返回上級菜單\n)。 }}。 if(0 != strcmp(newPassword1,newPassword2)) { printf(對不起,你兩次輸入的密碼不一致,修改失敗!\n)。 }}。 case 4: ReportPrint()。 scanf(%d,amp。 printf(親愛的銷售員%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。 break。select)。 printf(親愛的店長%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。 break。 continue。 printf( (3)商品信息管理:添加,修改,查詢,刪除\n)。 printf( (4)退出系統(tǒng)\n)。 printf( (2)商品信息管理:添加,修改,查詢,刪除\n)。 printf( (1)自身密碼修改\n)。 } } else { printf(對不起,你輸入的密碼錯誤!\n)。 currentUserType = tmpUseruserType。 SystemUser *tmpUser。 tmpSellInfo=pSellInfoHead。 pSellInfoRecordday = pSellInfoday。 //新加入銷售記錄的編號從1開始 SellInfoRecord *tmpSellInfo,*pSellInfoRecord。 pProductnext = pPronext。 return FUNCTION_FAILED。}。 //拷貝用戶信息到堆空間中 strcpy(pSystemUserpassword,pUserpassword)。 tempSystemUser = pSystemUserHead。 strcpy(sellInfo[1].userName,sell)。 strcpy(sellInfo[0].userName,sell)。 AddProduct(amp。 strcpy(products[1].productType,w002)。 strcpy(products[0].productType,m001)。 AddUser(amp。 fclose(fp)。 fprintf(fp, %s\t%s, , )。SystemUser adminUser,bossUser,sellUser。 //顯示某日的銷售情況 void ShowMonthSellReport()。 //商品查看 void ProductFind()。 //銷售員操作菜單void ChangePassword()。 //向用戶信息鏈表中加入用戶信息int AddProduct(Products *pPro)。static char currentUser[20]。 //銷售商品的用戶名 int productId。 //商品型號 char productCompany[20]。六、附錄 原代碼 include //標(biāo)準(zhǔn)輸入輸出函數(shù)include //Windows頭文件include //日期和時間頭文件define ADMIN_USER_TYPE 1define BOSS_USER_TYPE 2define SELL_USER_TYPE 3define FUNCTION_FAILED 1define FUNCTION_SUCCESS 0 //如果函數(shù)成功執(zhí)行,將返回0/** 系統(tǒng)用戶結(jié)構(gòu) **/typedef struct SystemUser { char userName[20]。 system(pause)。 printf( 商品廠家: %s\n,tmpProductproductCompany)。 } tmpProduct = tmpProductnext。printf( 商品名稱: %s\n,tmpProductproductName)。 printf(請選擇查詢方式: 1按商品編號查詢 2按商品名稱查詢:)。 } else { tmpProductA = tmpProductB。 system(pause)。productId)。 break。tmpProductproductPrice)。 printf(新的商品名稱: )。 while(NULL != tmpProduct) { if(productId == tmpProductproductId){ //若從鍵盤輸入的商品編號與文件中的一致,則修改商品信息 printf(商品編號%d的商品信息如下:\n,productId)。//修改商品信息void ModifyProduct() { int productId。)。 scanf(%s,)。 AddSellInfo(amp。 sellInfo[1].month = 7。 sellInfo[0].month = 7。 strcpy(products[1].memo,時尚女裝,您的第一選擇)。 products[0].productCount = 100。 AddUser(amp。 strcpy(,admin)。(2) 查詢打開文件,從鍵盤輸入要查詢的信息,若在文件里找到要查詢的信息,則在界面輸入信息,并調(diào)用系統(tǒng)暫停函數(shù),返回界面;若沒有找到查詢的信息,調(diào)用系統(tǒng)暫停函數(shù),返回界面。 //銷售的商品編號 int sellCount。 //商品廠家 float productPrice。 //用戶名,主鍵 char password[20]。二、使用環(huán)境 (本次上機實踐所使用的平臺和相關(guān)軟件。 //商品編號,主鍵 char productName[20]。/** 銷售記錄信息結(jié)構(gòu) **/typedef struct SellInfoRecord { int saleId。 //銷售的附加信息 struct SellInfoRecord *next。 //管理員,店長,銷售員三個角色信息 Products products[2]。 fclose(fp)。 strcpy(products[0].productType,m001)。 strcpy(products[1].productCompany,時尚服裝制造廠)。products[1])。sellInfo[0].year = 2008。 sellInfo[1].year = 2008。//輸入商品名稱、型號、制作商、價格、數(shù)量、附加信息,并把從鍵盤輸入的值賦值給結(jié)構(gòu)體變量的商品名稱型號、制作商、價格、數(shù)量、附加信息 printf(商品名稱:)。)。product)) printf(商品信息添加成功!\n)。productId)。 printf( 商品數(shù)量: %d\n,tmpProductproductCount)。 scanf(%s,tmpProductproductCompany)。 scanf(%s,tmpProductmemo)。 printf(親愛的%s朋友,你好,你現(xiàn)在進入的商品刪除功能:\n,currentUser)。 tmpProductBnext == NULL){ //如果系統(tǒng)只有一條商品信息 free(pProductHead)。 printf(商品信息刪除成功!\n)。 int findWay,productId。 scanf(%d,amp。printf( 商品附加信息: %s\n,tmpProductmemo)。 //輸入要查詢的商品名稱 while(NULL != tmpProduct) { if(0 == strcmp(tmpProductproductName,productName)) {//若輸入查詢的商品名稱與文件中的一致,則輸出商品信息 printf(你要查詢的商品名稱為%s的商品信息如下:\n,productName)。 return 。首先,選擇“按商品編號查詢”,若查詢的編號存在,則顯示查詢的信息若查詢的商品編號不存在,則提示信息“對不起,不存在該商品編號的商品”選擇“按商品名稱查詢”,輸入正確的商品名稱,顯示查詢信息若查詢的商品名稱不存在,則提示信息“對不起,不存在該商品編號的商品”選擇“商品信息添加”,添加商品信息選擇“商品信息修改”,修改商品信息選擇“商品信息刪除”,刪除商品返回管理員界面,選擇“商品報表顯示”,進行銷售報表功能選擇“所有商品銷售情況”,顯示商品信息選擇“商品日銷售報表”,查看符合條件的銷售商品若查詢的信息不符合條件,則顯示沒有符合條件的記錄選擇“商品月銷售報表”,查看符合條件的銷售商品選擇“銷售員銷售報表”,查看符合條件的銷售商品(三)以店長方式登錄系統(tǒng)選擇“自身密碼修改”,修改店長密碼店長其他功能(商品信息管理,銷售報表顯示)與管理員類似。/** 服裝商品信息 **/typedef struct Products { int productId。 //指向下一個商品的指針} Products。 //銷售商品日期 char memo[50]。 //保存系統(tǒng)商品信息記錄的頭指針static SellInfoRecord *pSellInfoHead = NULL。 //系統(tǒng)登陸void AdminOperationMenu()。 //用戶信息修改 void UserInfoDelete()。 //商品銷售void ReportPrint()。 //通過商品編號查詢商品名稱int getCountById(int)。 = ADMIN_USER_TYPE。
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1