数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)

上传人:s9****2 文档编号:476708062 上传时间:2023-07-29 格式:DOC 页数:50 大小:67KB
返回 下载 相关 举报
数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)_第1页
第1页 / 共50页
数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)_第2页
第2页 / 共50页
数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)_第3页
第3页 / 共50页
数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)_第4页
第4页 / 共50页
数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)_第5页
第5页 / 共50页
点击查看更多>>
资源描述

《数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)》由会员分享,可在线阅读,更多相关《数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)(50页珍藏版)》请在金锄头文库上搜索。

1、数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code)#包括#包括。H / getch#包括 iostream。”#包括字符串。”#包括。H /系统退出米马/定义密码结构体结构int麻木;char名称 20 ;结构时间/定义时间结构体年份;月;国际日;结构/定义种类连表货物名称 20 ;/货物名char类型 50 ;/货物种类时间时间;/ /表示货物的进店时间时间时间;/ /表示保质期的截止时间数组的个数;/ /入店件数浮动价格;/ /进货价格浮动价格;/ /销

2、售价格货物*下;sellstore() /卖货总函数无效;bool SellOneInfo(角色名字 30 ,int sellcount);/ /卖货* FindOneInfo(商品名称 30 );/查找无效findstore();/ /查找函数(数量为0商品,和指定名称的商品prin() /输出函数无效;无效wwx1();/ /初始化利润统计(S 数组)wwx2() /页面函数无效;无效managestore();/ /管理函数(添加,修改,查找没有货商品)showallinfo() /显示所有商品函数无效;addgoods() /添加函数无效;无效showoneinfo(货物* p);/显

3、示一件商品函数无效myread(int num);/ /读文件函数profit() /利润函数无效;无效delegoods2();/ /删除数量为0函数delegoods() /删除函数无效;删除空行(角色名字 20 );/删除指定货物函数fgoodsinfo() /寻找库存为空的货物无效;无效editgoodsinfo(角色名字 20 );/修改函数wwx() /退出页面无效;无效的极其(文件,货物IP);/ /写入的过程无效的输出(文件、物品* IP);/ /读的过程mywrite1() /刷新函数无效;mywrite() /追加函数无效;secret() /密码函数无效;cha() /指

4、定位置插入无效;pai() /冒泡排序无效;无效fcha();货物第一=新产品;/ /全局指针漂浮的 100 ;/统计每一次的利润在z = 0;/销售次数浮SS = 0;/统计总利润int num;/ /种类数量国际main() = 0;/ / / / /调用密码函数secret();第一个下一个= null;如果(第一个= NULL)cout “初始化货物信息不成功”;返回0;myread(100);/读入文件信息系统(“颜色3”);/ /颜色wwx1();/ /初始化利润统计的数组系统(“华彩”);/ /清屏环:/ /标签wwx2();/ /页面cout “T T = = = = = =

5、= *商店货物管理系统*” endl endl;Coutchoice; system (CLS);If (choice=1) ManageStore ()If (choice=2) SellStore ()If (choice=3) FindStore ()If (choice=4) delegoods ()If (choice=5) profit ()If (choice=6) wwx (); return 0;Goto loop;Void (fcha) / / according to the type of searchint i;Char lx30; coutlx;Goods *p=f

6、irst-next;Goods *q=new Goods; q-next=NULL;While (P, =NULL)If (. StrCmp (p-kind, LX)Q-count=p-count;Strcpy (q-kind, p-kind);Strcpy (q-name, p-name);Q-price1=p-price1;Q-price2=p-price2;Q-time1=p-time1;Q-time2=p-time2; ShowOneInfo (Q);P=p-next;Cout do you need sales: 1. requires 2., no need: i;If (i2|i

7、1)Cout0)m=num-1; m=m-j; j+;Goods *p=first-next;Goods *q=p-next;Goods *t=new Goods;While (m0)If (p-price2q-price2) / sales price comparisonstrcpy (t-kind, p-kind); strcpy (t-name, p-name);T-price1=p-price1; t-time1=p-time1; t-time2=p-time2;T-count=p-count; t-price2=p-price2;Strcpy (p-kind, q-kind); s

8、trcpy (p-name, q-name);P-price1=q-price1; p-time1=q-time1; p-time2=q-time2;P-count=q-count; p-price2=q-price2;Strcpy (q-kind, t-kind); strcpy (q-name, t-name);Q-price1=t-price1; q-time1=t-time1; q-time2=t-time2;Q-count=t-count; q-price2=t-price2;P=p-next; q=p-next;M-;if (j=num-1) m=-1; else m=1; / /

9、 to determine whether the end of the cycleReturn;Void (CHA) / / insert the specified locationsystem (color 6);Goods *q=first;Int i=1; int m=0;Cout enter the location you want to insert (1 to numi ; /num is the total numberIf (inum|i1)cout wrong input! press any key to return next;Coutp-name;Coutp-co

10、unt;Coutp-kind;Coutp-price1;Coutp-price2;Coutp-time1.yearp-time1.monthp-time1.day;Coutp-time2.yearp-time2.monthp-time2.day;While (Q, =NULL&mnext; m+;/ found before an insertion positionP-next=q-next; / / insert the pointer to the nextQ-next=p; system (CLS); / / pointer pointer pointer to insert aCout insert success endl; getch ();Num+; / / add a total(mywrite1)/ re written;Return;Void, secret ()int i=3; int j; system (color 3);Coutj; system (CLS);Switch (J)case 1:Mima *p=new Mima;Mima *q=new Mima;FILE

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 幼儿/小学教育 > 幼儿教育

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号