1 / 14
文档名称:

数据结构仓库管理系统c++.doc

格式:doc   大小:64KB   页数:14
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

数据结构仓库管理系统c++.doc

上传人:765103370 2020/2/19 文件大小:64 KB

下载得到文件列表

数据结构仓库管理系统c++.doc

文档介绍

文档介绍:#include<>#include<iostream>#include<fstream>#include<string>usingnamespacestd;structprodect{ stringname;//产品名字 intnum;//产品数量 intmaxnumber;//最大值 intminnumber;//最小值 prodect*next;};structlist{ intno;//库单编号 stringname;//填单人 stringproname;//产品名字 intpronum;//产品数量 intyear;//填单年 intmonth;//填单月 list*next;};structborlist{ intno;//借单编号 stringname;//借单填写人 intyear;//借单填写时间 intmonth; stringproname;//借出产品 intnumber;//借出数量 inttyear; inttmonth; borlist*next;};prodect*p_head;list*i_head;list*o_head;borlist*b_head;intcount=3;inti_number=0;into_number=0;intb_number=0;voidinit(){ p_head=newprodect; p_head->next=NULL; i_head=newlist; i_head->next=NULL; o_head=newlist; o_head->next=NULL; b_head=newborlist; b_head->next=NULL;}voidinitproduce(){ for(inti=0;i<count;++i) { prodect*p=newprodect; cout<<"一共"<<count<<"个产品,请输入第"<<i+1<<"个产品的信息。"<<endl; cout<<"请输入产品名字:"; cin>>p->name; cout<<"请输入产品数量:"; cin>>p->num; cout<<"请输入产品最大值:"; cin>>p->maxnumber; cout<<"请输入产品最小值:"; cin>>p->minnumber; p->next=p_head->next; p_head->next=p; }}voidinput(){ list*sp=newlist; cout<<"请填写入库单信息。"<<endl; cout<<"请输入库单的编号:"; cin>>sp->no; cout<<"产品入库人:"; cin>>sp->name; cout<<"入库产品名字:"; cin>>sp->proname; cout<<"入库产品数量:"; cin>>sp->pronum; cout<<"入库的年:"; cin>>sp->year; cout<<"入库的月:"; cin>>sp->month; prodect*tp=newprodect; tp=p_head->next; intk=0; while(tp) { if(tp->name==sp->proname) { intm_max=sp->pronum+tp->num; if(m_max>tp->maxnumber) { k=1; break; } k=2; tp->num=m_max; sp->next=i_head->next; i_head->next=sp; break; } tp=tp->next; } if(k==0) { cout<<"没有你输入的产品信息。"<<endl; } if(k==1) { cout<<"入库失败,产品"<<tp->name<<"已达上限。"<<endl; } if(k==2) { i_number=i_number+1; cout<<"产品入库成功。"<<endl; }}voidoutput(){ list*sp=newlist; cout<<"请填写出库单信息。"<<endl; cout<<"请输出库单的编号:"; cin>>sp->no; cout<<"产品出库人:"; cin>>sp->name; cout<<"出库产品名字:"; cin>>sp->proname; cout<<"出库产品数量:"; cin>>sp->pronum; cout<<"出库的年:"; cin>>sp->year; cout<<"出库的月:"; cin>>sp->month; prodect*tp=newprodect; tp=p_head->next; intk=0; while(tp) { if(tp->name==sp->proname) { int

最近更新

2025年黑龙江商业职业学院单招职业适应性测试.. 45页

2025枣庄技师学院公开招聘第二批备案制工作人.. 48页

2025泰科防务科技(重庆)有限公司招聘2人备考.. 45页

2025福建厦门市杏南中学产假顶岗教师招聘1人参.. 51页

2025重庆巫溪县公开遴选机关事业单位24人备考.. 47页

2026上海银清企业服务有限公司招聘备考题库附.. 44页

2026四川阿坝州阿坝县国有资产管理中心招聘阿.. 49页

2026年c语言指针考试题库及1套完整答案 13页

2026年c语言期末试题及答案(全国通用) 13页

2026年c语言知识试题(考试直接用) 13页

2026年中国城市建设史复习题100道含答案(研优.. 44页

2024年安庆医药高等专科学校辅导员招聘考试真.. 30页

2026年云南水利水电职业学院单招职业技能测试.. 45页

2024年新疆医科大学辅导员招聘备考题库最新 36页

2026年企业作业人员题库100道带答案(培优) 40页

2024年福州墨尔本理工职业学院辅导员招聘备考.. 30页

2025下半年山东高速云南发展有限公司招聘1人考.. 50页

2025云南曲靖市马龙区旧县街道社区卫生服务中.. 32页

2026年医学微生物学习题集及答案(名校卷) 41页

2026年南宁职业技术学院单招职业倾向性测试题.. 44页

2026年危化品安全生产知识题库及答案(夺冠系.. 41页

2025年内蒙古机电职业技术学院马克思主义基本.. 12页

2025交通运输部所属事业单位第七批统一招聘10.. 18页

2025年新疆考试录用公务员《公安专业科目》真.. 30页

沪科版八年级-《压强》单元测试题(含答案) 7页

企业承包商准入与退出机制 11页

中药配伍禁忌表 6页

《凌志轩四柱命理高级培训班教材》 72页

隐仙派子平命法传人班,老海秘本面授资料 22页

心思的战场-乔依丝迈尔 50页