ImageVerifierCode 换一换
格式:DOC , 页数:50 ,大小:73.50KB ,
资源ID:2779560      下载积分:20 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.docduoduo.com/d-2779560.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(数据结构课程设计商品货物管理系统源程序(Data structure curriculum design, commodity management system source code).doc)为本站会员(dreamzhangning)主动上传,道客多多仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知道客多多(发送邮件至docduoduo@163.com或直接QQ联系客服),我们立即给予删除!

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

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

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

3、ad(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 choice; system (“CLS“);If (choice=1) ManageStore ()If (choice=2) SellStore ()If (choice=3) FindStore ()If (choice=4) delegood

5、s ()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=first-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-p

6、rice1=p-price1;Q-price2=p-price2;Q-time1=p-time1;Q-time2=p-time2; ShowOneInfo (Q);P=p-next;Couti;If (i2|i0)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-pri

7、ce1; t-time1=p-time1; t-time2=p-time2;T-count=p-count; t-price2=p-price2;Strcpy (p-kind, q-kind); strcpy (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-time

8、2=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; / / 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;Couti “;“ /num “is the total numberIf (inum|inext;Coutp-n

9、ame;Coutp-count;Coutp-kind;Coutp-price1;Coutp-price2;Coutp-time1.yearp-time1.monthp-time1.day;Coutp-time2.yearp-time2.monthp-time2.day;While (Q, =NULL m+;/ found before an insertion positionP-next=q-next; / / insert the pointer to the nextQ-next=p; system (“CLS“); / / pointer pointer pointer to inse

10、rt aCoutj; system (“CLS“);Switch (J)case 1:Mima *p=new Mima;Mima *q=new Mima;FILE *fp=NULL;Fp=fopen (“f:mima.txt“, “R“);If (fp=NULL)Printf (“Can not open the file.n“);Getch ();Exit (0);Fscanf (FP,%s,%d, p-name, Fclose (FP);While (i0)Coutq-name;Coutq-numb;If (StrCmp (p-name, q-name) ElseCoutq-name;Co

11、utq-numb;Fprintf (FP,%s,%d, q-name, q-numb);Cout名称-名称,IP) )继续;q = IP;下一步;第一个下一个= IP;数字+;系统(“CLS” ) ;关闭文件(FP) ;返回;无效 mywrite1() /刷新系统(“颜色 4”) ;货物=新货物;系统(“CLS” ) ;系统(“颜色 7”) ;文件*;FP = fopen(“F:输入.txt” 、 “W”) ;如果(FP = NULL) printf(“无法打开文件。n” ) ;getch();出口(0) ;下一步;对于(int = i 0;i 0)cout 名称-,IP,和 IP -计数,与

12、 IP -价格,与 IP -价格) ;fscanf(FP, “%d %d %d”,与 IP -时间。年,与 IP -时间。月,与 IP -时间。天) ;fscanf(FP, “%d %d %d”,与 IP -时间。年,与 IP -时间。月,与 IP -时间。天) ;无效的极其(文件,货物 IP =新产品) fprintf(FP, “%s %s %d f f”,IP -名称-,IP,IP - -价格算,IP,IP -价格) ;fprintf(FP, “%d %d %d”,IP -时间。年,IP -时间。月,IP -时间。天) ;fprintf(FP, “%d %d %dn”,IP -时间。年,I

13、P -时间。月,IP -时间。天) ;无效 mywrite()系统(“CLS” ) ;系统(“颜色 7”) ;n,i;文件*;FP = fopen(“F:输入。txt” , “”) ;如果(FP = NULL) printf(“无法打开文件。n” ) ;getch();出口(0) ;cout 下= IP;cout 类的名字算价格价格时间。月时间。天 goodsname;EditGoodsInfo(goodsname) ;如果(选择= 2)cha();如果(选择= 1)cout 磷;CIN 的名字;cout 磷;CIN 计数;cout ;CIN P 类;cout ;CIN P 价格;cout ;

14、CIN P 价格;cout P 时间。年 P 时间。月 磷 time1.day;cout 磷 2.年P 时间。月 磷 time2.day;下一个;第一个下一个;无效 showallinfo() /所有货物信息系统(“颜色 D”) ;int i;货物*;当(q)!= null)showoneinfo(Q) ;q = q 下;getch(); cout 2 | |我1)cout 的名字;P = FindOneInfo(名) ;如果(p = NULL)cout “抱歉!目前商店没有改货物n“;如果(选择= = 2) showallinfo();如果(选择= = 3) pai();showallinfo();如果(选择= = 4) fcha();如果(选择= 5)系统(“CLS” ) ;返回;goto Loop;/ /返回到标签

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报