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

正文內(nèi)容

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

2025-07-31 06:24上一頁面

下一頁面
  

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