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

正文內(nèi)容

c語(yǔ)言課程設(shè)計(jì)-服裝銷售系統(tǒng)(完整版)

  

【正文】 : AdminOperationMenu()。 printf(請(qǐng)輸入你的系統(tǒng)用戶帳號(hào):)。 printf( (2)自己商品銷售報(bào)表顯示:日銷售報(bào)表,月銷售報(bào)表\n)。 printf( (4)退出登陸系統(tǒng)\n)。人性化設(shè)計(jì)有在刪除之前詢問(wèn)是否繼續(xù)。算法和以上的分程序有相同的優(yōu)點(diǎn)。(2) 向管理員提供以下功能:自身密碼修改、其他用戶添加刪除、用戶信息修改、統(tǒng)計(jì)。1.【整體ER圖31】服裝管理系統(tǒng)管理員模塊店長(zhǎng)模塊銷售員模塊退出用戶添加用戶刪除顯示所有用戶退出自身信息修改商品信息瀏覽營(yíng)業(yè)員業(yè)績(jī)報(bào)表商品瀏覽商品查找出售密碼修改查看本月報(bào)表 圖312.【程序中典型的流程圖】(一)添加模塊(1)分析:信息添加模塊職工的基本信息包括:用戶、商品基本信息,對(duì)它們輸入后,要存進(jìn)原文件,流程圖(圖32)如下。程序在選擇結(jié)構(gòu)上采用了if和else的嵌套形式,看起來(lái)有點(diǎn)繁雜(圖34)開(kāi)始文件打開(kāi)查詢方式是否繼續(xù)結(jié)束輸出錯(cuò)誤信息商品的名稱 圖34(四)刪除模塊(1)分析:商品信息存放在磁盤中,程序須將該文件全部取出來(lái),在內(nèi)存中把要?jiǎng)h掉的內(nèi)容除去,然后在重新輸入到磁盤,這種算法比較合理,但有一點(diǎn)煩瑣。 printf( (1)自身密碼修改\n)。 printf( (4)退出登陸系統(tǒng)\n)。歡迎界面運(yùn)行如下(圖41): 圖41 void SystemLogin()函數(shù)void SystemLogin() { //所有用戶身份調(diào)用的登陸函數(shù) char userName[20],password[20]。 while(NULL != tmpUser) { if(0 == strcmp(tmpUseruserName,userName)) { if(0 == strcmp(tmpUserpassword,password)) { isLogin = 1。 break。 while(1) { printf(親愛(ài)的管理員%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。 switch(select) { case 1: ChangePassword()。 default: break。 scanf(%s,newPassword2)。 }}。 printf( (6)退出登陸系統(tǒng)\n)。 case 3: UserInfoModify()。 default: break。 }}。 scanf(%d,amp。 printf(親愛(ài)的管理員%s,請(qǐng)輸入要修改的用戶帳號(hào):\n,currentUser)。 scanf(%d,amp。 char userName[20]。 pUserBnext == NULL){ //如果系統(tǒng)只有一條商品信息 free(pSystemUserHead)。 return 。 printf( (2)商品信息查找\n)。select)。 //調(diào)用商品修改函數(shù)// continue。 break。 int i。 printf(商品廠家: %s\n,tmpProductproductCompany)。 int findWay,productId。 scanf(%d,amp。 printf( 商品附加信息: %s\n,tmpProductmemo)。 printf( 商品名稱: %s\n,tmpProductproductName)。 } printf(對(duì)不起,不存在該商品編號(hào)的商品!\n)。 scanf(%s,)。)。 //待修改的商品編號(hào) Products *tmpProduct。 printf( 商品名稱: %s\n,tmpProductproductName)。 scanf(%s,tmpProductproductName)。 printf(新的商品數(shù)量: )。 } }。 //tmpProductB指向要?jiǎng)h除的記錄,tmpProductA指向前一條記錄 if(NULL == tmpProductB) return 。 if(pProductHead == tmpProductB) pProductHead = tmpProductBnext。4. 店長(zhǎng)功能模塊(圖416)店長(zhǎng)模塊自身密碼修改:添加,修改,查詢,刪除:日銷售報(bào)表,月銷售報(bào)表,銷售員銷售報(bào)表5. 圖416(1) 店長(zhǎng)歡迎界面//店長(zhǎng)歡迎界面//void BossOperationMenu() { int select。select)。 break。 printf( (4)銷售員銷售報(bào)表\n)。 case 2: ShowDaySellReport()。 case BOSS_USER_TYPE: BossOperationMenu()。 printf( (1)查看自己日銷售報(bào)表\n)。 continue。 } } }}。 scanf(%d,amp。 tmpSellInfo = pSellInfoHead。 ((SELL_USER_TYPE == currentUserType)?(0 == strcmp(tmpSellInfouserName,currentUser)):1)) { rsCount++。 printf( 銷售數(shù)量:%d\n,tmpSellInfosellCount)。 int rsCount = 0。 printf(請(qǐng)輸入銷售時(shí)間月份:)。amp。 printf( 商品單價(jià):%f\n,onePrice)。//顯示銷售員的業(yè)績(jī)//void ShowEmployeeSellReport() { char userName[20]。 tmpSellInfo = pSellInfoHead。 onePrice = getPriceById(tmpSellInfoproductId)。}。 while(NULL != tmpSellInfo) { rsCount++。 printf( 銷售數(shù)量:%d\n,tmpSellInfosellCount)。 while(1) { printf(親愛(ài)的銷售員%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。select)。 continue。首先通過(guò)不斷地學(xué)習(xí)和鍛煉更加熟練地掌握應(yīng)用軟件Microsoft Visual C++了。感謝身邊C語(yǔ)言高手們?cè)诔绦蛟O(shè)計(jì)時(shí)的一些幫助,讓我克服難關(guān)。同時(shí)我掌握了解決問(wèn)題的方法,這無(wú)論是對(duì)以后的學(xué)習(xí)、生活都有無(wú)比重要的價(jià)值。 break。 continue。 printf( (2)商品查詢\n)。 printf( 銷售時(shí)間:%d年%d月%d日\(chéng)n,tmpSellInfoyear,tmpSellInfomonth,tmpSellInfoday)。 printf( 銷售編號(hào):%d\n,tmpSellInfosaleId)。 float totalPrice = ,onePrice。 printf( 銷售數(shù)量:%d\n,tmpSellInfosellCount)。 while(NULL != tmpSellInfo) { if(0 == strcmp(userName,tmpSellInfouserName)) { rsCount++。 float totalPrice = ,onePrice。 printf( 銷售員:%s\n,tmpSellInfouserName)。 printf(符合條件的第%d條商品銷售記錄信息如下:\n,rsCount)。month)。 char productName[20]。 printf( 銷售時(shí)間:%d年%d月%d日\(chéng)n,tmpSellInfoyear,tmpSellInfomonth,tmpSellInfoday)。 printf( 銷售編號(hào):%d\n,tmpSellInfosaleId)。 while(NULL != tmpSellInfo) { if(year == tmpSellInfoyear amp。 printf(請(qǐng)輸入銷售時(shí)間月份:)。 int rsCount = 0。 continue。 printf( (3)返回上級(jí)菜單\n)。 default: break。 case 3: ShowMonthSellReport()。 printf( (6)退出登陸系統(tǒng)\n)。 } }}。 break。 printf( (1)自身密碼修改\n)。 printf(商品信息刪除成功!\n)。amp。 Products *tmpProductA,*tmpProductB。tmpProductproductCount)。 scanf(%s,tmpProductproductType)。 printf( 商品廠家: %s\n,tmpProductproductCompany)。 printf(請(qǐng)輸入要修改的商品編號(hào):)。 scanf(%s,)。 scanf(%s,)。 default: break。 printf( 商品廠家: %s\n,tmpProductproductCompany)。 } tmpProduct = tmpProductnext。 while(NULL != tmpProduct) { if(product
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1