云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 服装销售管理系统—C语言课程设计 - 图文

服装销售管理系统—C语言课程设计 - 图文

  • 62 次阅读
  • 3 次下载
  • 2025/7/2 15:19:54

C语言课程设计实验报告 printf(\对不起,不存在该商品编号的商品!\\n\ system(\ case 2: printf(\请输入查询的商品名称:\ scanf(\ while(NULL != tmpProduct) { if(0 == strcmp(tmpProduct->productName,productName)) { printf(\你要查询的商品名称为%s的商品信息如下:\\n\ printf(\商品名称: %s\\n\ printf(\商品型号: %s\\n\ printf(\商品厂家: %s\\n\ printf(\商品价格: %f\\n\ printf(\商品数量: %d\\n\ printf(\商品附加信息: %s\\n\ system(\ return ; } tmpProduct = tmpProduct->next; } printf(\对不起,不存在该商品编号的商品!\\n\ system(\ default: break; }} //删除商品 void DeleteProduct() { int productId = 0; Products *tmpProductA,*tmpProductB; printf(\\\n\ printf(\亲爱的%s朋友,你好,你现在进入的商品删除功能:\\n\ printf(\请输入你要删除的商品编号:\ scanf(\ tmpProductA = tmpProductB = pProductHead; //tmpProductB指向要删除的记录,tmpProductA指向前一条记录 if(NULL == tmpProductB) return ; while(NULL != tmpProductB){ if(tmpProductB->productId == productId) { if(tmpProductB == pProductHead && tmpProductB->next == NULL){ //如果系统只有一条商品信息 free(pProductHead); pProductHead = NULL; printf(\商品信息删除成功!\\n\ system(\ return ; } tmpProductA->next = tmpProductB->next; if(pProductHead == tmpProductB) pProductHead = tmpProductB->next; free(tmpProductB); printf(\商品信息删除成功!\\n\ system(\第 29 页 共 37 页 C语言课程设计实验报告 return ; } else { tmpProductA = tmpProductB; tmpProductB = tmpProductB->next; } } printf(\对不起,不存在该商品编号的信息!\//销售报表功能 void ReportPrint() { int select = 0; if(SELL_USER_TYPE != currentUserType) { while(1) { system(\ printf(\亲爱的朋友%s,你好,你现在进入的是销售报表功能界面:\\n\ printf(\所有商品销售情况\\n\ printf(\商品日销售报表\\n\ printf(\商品月销售报表\\n\ printf(\销售员销售报表\\n\ printf(\返回上级菜单\\n\ printf(\退出登陆系统\\n\ printf(\请选择对应的功能号:\ scanf(\ switch(select) { case 1: ShowAllSellReport(); continue; case 2: ShowDaySellReport(); continue; case 3: ShowMonthSellReport(); continue; case 4: ShowEmployeeSellReport(); continue; case 5: switch(currentUserType) { case ADMIN_USER_TYPE: AdminOperationMenu(); break; case BOSS_USER_TYPE: BossOperationMenu(); break; default: break; } break; case 6: ExitSystem(); break; default: break; 第 30 页 共 37 页 C语言课程设计实验报告 } } } else { while(1) { system(\ printf(\亲爱的销售员%s,你好,你现在进入的是销售报表功能界面:\\n\ printf(\查看自己日销售报表\\n\ printf(\查看自己月销售报表\\n\ printf(\返回上级菜单\\n\ printf(\退出登陆系统\ printf(\请选择相应的功能号:\ scanf(\ switch(select) { case 1: ShowDaySellReport(); continue; case 2: ShowMonthSellReport(); continue; case 3: SellOperationMenu(); break; case 4: ExitSystem(); break; default: break; } } }}; //查看所有用户信息 void UserInfoView() { SystemUser *tmpUser; tmpUser = pSystemUserHead; printf(\\\n\ printf(\亲爱的管理员%s,你好,你查看的所有用户信息如下:\\n\ printf(\用户名\\t密码\\t用户类型(1代表管理员,2代表店长,3代表销售员)\\n\while(NULL != tmpUser) {printf(\r->userType); tmpUser = tmpUser->next; } system(\//添加用户信息 void UserInfoAdd() { SystemUser tmpUser; printf(\\\n\ printf(\亲爱的管理员%s,请依次输入用户信息:\\n\ printf(\用户名:\ scanf(\ printf(\用户密码:\第 31 页 共 37 页 C语言课程设计实验报告 scanf(\ printf(\用户类型(1代表管理员,2代表店长,3代表销售员):\ scanf(\ tmpUser.next = NULL; if(FUNCTION_SUCCESS == AddUser(&tmpUser)) printf(\用户信息添加成功!\\n\ system(\}; //更改用户信息 void UserInfoModify() { char userName[20]; SystemUser *pUser; printf(\\\n\ printf(\亲爱的管理员%s,请输入要修改的用户帐号:\ scanf(\ pUser = pSystemUserHead; while(NULL != pUser) { if(0 == strcmp(pUser->userName,userName)) { printf(\请输入新的帐号:\ scanf(\ printf(\请输入新的密码:\ scanf(\ printf(\请输入新的用户类型(1代表管理员,2代表店长,3代表销售员):\ scanf(\ printf(\用户信息修改成功\\n\ system(\ return ; } pUser = pUser->next; } printf(\对不起,没有你查找的用户信息!\\n\//删除用户 void UserInfoDelete() { SystemUser *pUserA,*pUserB; char userName[20]; printf(\\\n\ printf(\亲爱的管理员%s朋友,你好,你现在进入的用户信息删除功能:\\n\ printf(\请输入你要删除的用户名:\ scanf(\ pUserA = pUserB = pSystemUserHead; //pUserB指向要删除的记录,pUserA指向前一条记录 if(NULL == pUserB) return ; while(NULL != pUserB){ if(0 == strcmp(userName,pUserB->userName)) { if(pUserB == pSystemUserHead && pUserB->next == NULL){ //如果系统只有一条商品信息 free(pSystemUserHead); pSystemUserHead = NULL; printf(\用户信息删除成功!\\n\第 32 页 共 37 页

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

C语言课程设计实验报告 printf(\对不起,不存在该商品编号的商品!\\n\ system(\ case 2: printf(\请输入查询的商品名称:\ scanf(\ while(NULL != tmpProduct) { if(0 == strcmp(tmpProduct->productName,productName)) { printf(\你要查询的商品名称为%s的商品信息如下:\\n\ printf(\商品名称: %s\\n\ printf(\商品型号: %s\\n\ printf(\商品厂家: %s\\n\ printf(\商品价格: %f\\n\ printf(\

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com