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

正文內(nèi)容

服裝銷售管理系統(tǒng)—c語言課程設(shè)計-預(yù)覽頁

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

下一頁面
 

【正文】 tId){ //若從鍵盤輸入的商品編號與文件中的一致,則修改商品信息 printf(商品編號%d的商品信息如下:\n,productId)。 printf( 商品價格: %f\n,tmpProductproductPrice)。 printf(新的商品名稱: )。 printf(新的商品廠家: )。tmpProductproductPrice)。 printf(新的商品附加信息: )。 break。 Products *tmpProductA,*tmpProductB。productId)。amp。 system(pause)。 free(tmpProductB)。 } else { tmpProductA = tmpProductB。//商品查詢void ProductFind() { Products *tmpProduct。 printf(請選擇查詢方式: 1按商品編號查詢 2按商品名稱查詢:)。 switch(findWay) { case 1: printf(請輸入查詢的商品編號:)。printf( 商品名稱: %s\n,tmpProductproductName)。printf( 商品數(shù)量: %d\n,tmpProductproductCount)。 } tmpProduct = tmpProductnext。 scanf(%s,productName)。 printf( 商品廠家: %s\n,tmpProductproductCompany)。 system(pause)。 system(pause)。選擇“商品信息查找”,根據(jù)商品編號及商品名稱進行查找。六、附錄 原代碼 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]。 //指向下一個用戶的指針} SystemUser。 //商品型號 char productCompany[20]。 //商品附加信息 struct Products *next。 //銷售商品的用戶名 int productId。 //銷售商品月份 int day。static char currentUser[20]。 //保存系統(tǒng)用戶信息記錄的頭指針static Products *pProductHead = NULL。 //向用戶信息鏈表中加入用戶信息int AddProduct(Products *pPro)。 //系統(tǒng)歡迎菜單void SystemLogin()。 //銷售員操作菜單void ChangePassword()。 //用戶信息添加 void UserInfoModify()。 //商品查看 void ProductFind()。 //刪除商品信息 void ProductsSell()。 //顯示某日的銷售情況 void ShowMonthSellReport()。 //通過商品編號查詢商品價格int getProductNameById(int,char *)。SystemUser adminUser,bossUser,sellUser。 strcpy(,admin)。 fprintf(fp, %s\t%s, , )。 = BOSS_USER_TYPE。 fclose(fp)。 = NULL。 AddUser(amp。 AddUser(amp。 strcpy(products[0].productType,m001)。 strcpy(products[0].memo,精品男裝,您的第一選擇)。 strcpy(products[1].productType,w002)。 strcpy(products[1].memo,時尚女裝,您的第一選擇)。 AddProduct(amp。 sellInfo[0].month = 7。 strcpy(sellInfo[0].userName,sell)。 sellInfo[1].month = 7。 strcpy(sellInfo[1].userName,sell)。 AddSellInfo(amp。 tempSystemUser = pSystemUserHead。 } pSystemUser = (SystemUser *) malloc(sizeof(SystemUser))。 //拷貝用戶信息到堆空間中 strcpy(pSystemUserpassword,pUserpassword)。 if(NULL == tempSystemUser) { pSystemUserHead = pSystemUser。}。 //生成編號,最后一件商品編號+1 while(NULL != tempProduct) { newProductId = tempProductproductId + 1。 return FUNCTION_FAILED。 strcpy(pProductproductCompany,pProproductCompany)。 pProductnext = pPronext。 tempProductnext = pProduct。 //新加入銷售記錄的編號從1開始 SellInfoRecord *tmpSellInfo,*pSellInfoRecord。 } pSellInfoRecord= (SellInfoRecord *)malloc(sizeof(SellInfoRecord))。 pSellInfoRecordday = pSellInfoday。 pSellInfoRecordproductId = pSellInfoproductId。 tmpSellInfo=pSellInfoHead。 } return FUNCTION_SUCCESS。 SystemUser *tmpUser。 scanf(%s,password)。 currentUserType = tmpUseruserType。 break。 } } else { printf(對不起,你輸入的密碼錯誤!\n)。 //遍歷了所有用戶都沒有找到用戶 SystemLogin()。 printf( (1)自身密碼修改\n)。 printf( (5)返回主界面\n)。 printf( (2)商品信息管理:添加,修改,查詢,刪除\n)。 printf( 銷售員功能:\n)。 printf( (4)退出系統(tǒng)\n)。 while(1) { system(cls)。 printf( (3)商品信息管理:添加,修改,查詢,刪除\n)。 printf(請輸入上面功能對應(yīng)的序號進行功能選擇:)。 continue。 continue。 break。 } if(select==5)break。 printf(親愛的店長%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。 printf( (4)返回主界面\n)。select)。 continue。 break。 } if(select==4)break。 printf(親愛的銷售員%s同志,歡迎使用本系統(tǒng),你擁有下面所有功能:\n,currentUser)。 printf( (4)報表查看\n)。 scanf(%d,amp。 case 2: ProductFind()。 case 4: ReportPrint()。 case 6: ExitSystem()。 }}。 printf(請輸入你的新密碼:)。 if(0 != strcmp(newPassword1,newPassword2)) { printf(對不起,你兩次輸入的密碼不一致,修改失敗!\n)。 printf(密碼修改成功!\n)。 }}。 printf( (1)用戶信息查看\n)。 printf( (5)返回上級菜單\n)。select)。 continue。 continue。 break。 int i。 else{ while(NULL != tmpProduct) { printf(*********************************************************\n)。 printf(商品型號: %s\n,tmpProductproductType)。 printf(商品附加信息: %s\n,tmpProductmemo)。 }}。 printf(請依次輸入以下銷售信息:\n)。 printf(銷售的產(chǎn)品數(shù)量:)。 system(pause)。 scanf(%d,amp。)。 printf(銷售商品的附加信息:)。sellInfo)) { printf(商品銷售成功!\n)。}。 printf( (1)商品信息查看\n)。 printf( (5)商品信息刪除\n)。 scanf(%d,amp。 case 2: ProductFind()。 case 4: ModifyProduct()。 case 6: switch(currentUserType) { case ADMIN_USER_TYPE: AdminOperationMenu()。 case SELL_USER_TYPE: SellOperationMenu()。 case 7: ExitSystem()。//添加商品信息void InputAndAddProduct() { Products product。
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1