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

加入VIP,免费下载
 

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

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

下载须知

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

版权提示 | 免责声明

本文(C语言仓库管理系统.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

C语言仓库管理系统.docx

1、C语言仓库管理系统C语言仓库管理系统题目是: 设计一个简单的仓储管理系统,要求具有基本的操作功能:插入(添加)、删除、查找、修改和统计。 业务简介 1.采购人员将采购物资清单交与财务人员,其中包含一些必要的数据.财务人员据此作帐,将数据记入,并开一张票据,交与采购人员实现物资入库. 2.当有物资卖出时,即物资出库,财务人员会查阅当前此类货物的库存情况,如此类货物还有存量,且有不同的出价时,财务人员会根据情况,调出相应价的货物. 由于市场行情时常波动,管理人员可能会据此对物资做出相应的调价. 3.当货物出现问题,需要退给供货商,并把退还的货物名,数量,金额,记录下来. 4.到一定时期的时候,例如

2、月底,年终,需要将各种物资的出入库,库存金额整理出来,以便为管理人员提供详尽,可靠的数据,为下一步制定目标方案提供依据. 2、1数据结构 用4个结构数组(或链表)来存储下述4类信息,每类信息的每条记录用结构类型自定义: 1商品信息:商品编号、商品名、型号/规格、数量、进货价、销售价 2入库信息:入库编号、商品编号、入库商品名、入库数量、入库价格、总价 3出库信息:出库编号、商品编号、出库商品名、出库数量、出库价格、总价 4退货信息:退货编号、商品编号、退还货物名、退货数量、退货价格、总价 2、2设计要求 5.对以上每类信息建立数据结构 6.对以上每类信息进行插入操作 7.对以上每类信息进行删除

3、操作 8.对以上每类信息进行修改操作 9.对以上每类信息进行查找操作(查找关键字用下划线标出) 10.数据统计; i.统计入库商品的总数及总价: ii.统计出库商品的总数及总价: iii.统计仓库中现有商品的总数及总价格: #include #include structproduct charp_num12; charname12; charspec12; intamount; intprice; ints_price; structproduct*next; ; structproduct*head; structin_product charnum12; charp_num12; cha

4、rname12; intamount; intprice; intt_price; structin_product*next; ; structin_product*ihead; structout_product charnum12; charp_num12; charname12; intamount; intprice; intt_price; structout_product*next; ; structout_product*ohead; structquit_product charnum12; charp_num12; charname12; intamount; intpr

5、ice; intt_price; structquit_product*next; ; structquit_product*qhead; intinit() head=ihead=ohead=qhead=NULL; printf(0:Quitn); printf(1:Entertheinformationofinproductn); printf(2:Entertheinformationofoutproductn); printf(3:Entertheinformationofquitproductn); printf(4:Totaltheinformationofproductn); i

6、ntmenu() printf(1:insertdatan); printf(2:deletedatan); printf(3:modifydatan); printf(4:selectdatan); printf(Othertoquitn); intmenu2() printf(0:Quitn); printf(1:Entertheinformationofinproductn); printf(2:Entertheinformationofoutproductn); printf(3:Entertheinformationofquitproductn); printf(4:Totalthe

7、informationofproductn); intinsert_product() structproduct*p1,*p; p1=(structproduct*)malloc(sizeof(structproduct); p=head; if(p=NULL)/*开始没有数据*/ printf(Enterthedataofproductn); printf(Includethespbh,name,style,num,price,sale_priceofproductn); scanf(%s%s%s%d%d%d, &p1-p_num,&p1-name,&p1-spec,&p1-amount,

8、&p1-price,&p1-s_price);head=p1; head-next=NULL; return0; while(p-next!=NULL)/*把指针移到链表末端,在链表末端插入数据*/ p=p-next; p-next=p1; printf(Enterthedatan); scanf(%s%s%s%d%d%d, &p1-num,&p1-p_num,&p1-name,&p1-amount,&p1-price,&p1-t_price); p1-next=NULL; intin_insert() structin_product*p1,*p; p1=(structin_product*

9、)malloc(sizeof(structin_product); p=ihead; if(p=NULL)/*开始没有数据*/ printf(Enterthedataofinproductn); printf(Includetherkbh,spbh,name,number,price,total_pricen); scanf(%s%s%s%d%d%d, &p1-num,&p1-p_num,&p1-name,&p1-amount,&p1-price,&p1-t_price); ihead=p1; ihead-next=NULL; return0; while(p-next!=NULL)/*把指针

10、移到链表末端,在链表末端插入数据*/ p=p-next; p-next=p1; printf(Enterthedatan); scanf(%s%s%s%d%d%d, &p1-num,&p1-p_num,&p1-name,&p1-amount,&p1-price,&p1-t_price); p1-next=NULL; intin_modify() charm_num12; structin_product*p; p=ihead; printf(Enterthemodifynumn); scanf(%s,&m_num); if(p=NULL)/*开始没有数据*/ printf(Sorry!Noda

11、tacanbefoundn); return0; while(p!=NULL) if(strcmp(p-num,m_num)=0) printf(Enterthenewdatawithoutnumn); scanf(%s%s%d%d%d, &p-p_num,&p-name,&p-amount,&p-price,&p-t_price); printf(Onedatahadmodifiedn); return0; p=p-next; printf(Sorry!Nonumhasfoundn); intin_select() chars_num12; structin_product*p; p=ihe

12、ad; printf(Entertheselectnumn); scanf(%s,&s_num); while(p!=NULL) if(strcmp(p-num,s_num)=0) printf(Thedatayouwantis:n); printf(%s%s%s%d%d%dn, p-num,p-p_num,p-name,p-amount,p-price,p-t_price); return0; p=p-next; printf(Sorry!Nonumhasfoundn); intin_delete() chard_num12; structin_product*p1,*p; p=ihead;

13、 printf(Enterthedeletenumn); scanf(%s,&d_num); if(p=NULL)/*开始没有数据*/ printf(Nodatacanbefoundn); return0; if(strcmp(p-num,d_num)=0&p-next=NULL)/*链表只有一个数据,且是要删除的*/ ihead=NULL; printf(Onedatahasbeendeletedn); return0; if(strcmp(p-num,d_num)=0&p-next!=NULL)/*要删除的数据在链表的头上*/ ihead=ihead-next; printf(Onedatahasbeendeletedn); return0; while(p-next!=NULL) p1=p-next;

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1