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

加入VIP,免费下载
 

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

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

下载须知

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

版权提示 | 免责声明

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

完整版c语言毕业课程设计.docx

1、完整版c语言毕业课程设计 摘 要 该系统主要是介绍超市进销存管理信息系统的环境、功能作用、所用到的语言、设计的方案等各方面的内容。主要是让使用者了解此系统,使他们能更好的运用本系统,使此系统发挥出应有的作用。本系统运用计算机管理信息技术,对超市的进销存过程进行详细的分析,实现了对超市的进货、出售和库存的科学管理。 本系统主要包括以下几大模块:输入单据:出库、入库、物品清单;查询:数量查询、价格查询、生产地查询。关键词: 销售;管理信息系统;C语言 Abstract This text mainly introduces the supermarket and enters to sell su

2、ch contents of various fields as the environment which stores the management information system , scheme on the function , language , design used ,etc. Let user find out about system this , enable them fine application this system mainly, make this system give play to due function . This system uses

3、 the information technology of computer management,sell the course of storing to carry on detailed analysis to the entering of the supermarket, store to the supermarket. This system is major and includes following several big modules : The input receipts :The warehouse is gone out to be put in stora

4、ge that the product end product detailed list is inquired about :The report form being put in storage is gone out the report form product end product detailed list report form in warehouse to sell to move back the money list report form to advance.keywords : Sell; management information system;C lan

5、guage1概述 11.1 设计思想 11.2 设计原则 11.3性能需求 12总体设计 22.1系统功能设计图 22.2系统功能设计 22.2.1 系统颜色模块功能 32.2.2 销售管理模块功能 32.2.3 进货管理模块功能 32.2.4 库存管理模块功能 32.3系统模块的运用方法 32.3.1输入记录模块 32.3.2查询记录模块 32.3.3输出记录模块 33详细设计使用 43.1数据定义 43.2主函数流程图 53.3源程序 74调试分析 84.1进入主界面 84.2 系统菜单界面 84.3 商品信息查询窗口 105总结 11参考文献 12致 谢 13附件 141概述1.1 设计

6、思想(1)系统分成几个相对独立的模块,但这些模块都进行集中式管理。(2)分层的模块化程序设计思想,整个系统采用模块化结构设计作为应用程序,有较强的可操作性和扩展性。(3)合理的数据设计,在应用系统设计中,相对独立的模块间以数据相互连接,使各模块间的耦合性较低,方便系统运行,提高系统安全性 。 1.2 设计原则为了使本系统功能齐全完备,操作简便,最大限度的提高软件的质量,从而满足用户的实际需要,在设计开发过程中遵循了如下原则:(1)合法性原则:依据产品核算系统的工作规定以及要求,参照核算实际的工作情况,进行诸如产品进货、销售等工作。(2)实用性原则:适合产品信息管理工作的实际需求,并能够处理一些

7、特殊情况的要求,此外,尽可能预留空间,以便扩充功能。(3)准确性原则:对输入的相关资料建立检错机制,及时报错,使用户能够及时准确的输入合法资料(如:类型匹配,长度不超限等)。(3)易操作原则:要求设计的系统功能齐全,界面友好,操作方便,必要的地方进行提示。(5)源程序可读性原则:为了便于其他设计,维护人员读懂代码或以后的代码修改,软件升级维护,即可能做好代码注释工作。1.3性能需求(1)数据精确度产品的进货单和销售单中,单价、金额采用浮点数,保留至小数点后两位。2总体设计2.1系统功能设计图图2-1 超市管理系统功能结构2.2系统功能设计系统功能设计是使整个系统能基本实现超市的进、销、存等管理

8、功能,能让超市管理者更直观的了解超市的经营状况,以做出相应的经营决策。管理信息系统(MIS)就是进行信息的收集、传送、存储、编制成各种凭证、报表、台帐、图形等信息,同时对这些信息进行维护,通过实测超市的各种运行情况,并利用过去的历史数据预测未来的发展,从超市全局的角度出发进行决策,利用信息控制超市的行为,辅助超市完成其目标。本系统共包括四大模块,分别是系统颜色模块,销售管理模块,进货管理模块,库存管理模块。每个模块的功能如下:2.2.1 系统颜色模块功能(1)实现系统颜色转换;(2)查看系统颜色;2.2.2 销售管理模块功能(1)实现销售信息的查询;(2)实现商品销售信息的盘点。2.2.3 进

9、货管理模块功能(1)实现进货信息的查询;(2)实现进货信息的更新,包括增加、删除、修改功能。2.2.4 库存管理模块功能(1)实现商品信息的查询;(2)实现商品信息的更新,包括增加、删除、修改功能;(3)实现库存信息的查询;(4)实现库存信息的更新,包括增加、删除、修改功能。2.3系统模块的运用方法2.3.1输入记录模块 输入记录模块的功能:输入各种商品的信息;2.3.2查询记录模块 查询记录模块的功能:查询各种商品的信息;2.3.3输出记录模块输出记录模块的功能:输出各种商品的信息;3详细设计使用3.1数据定义使用C语言创建的结构体和定义的函数如下:#includestdio.(); voi

10、d chushou(int count); void Append(); void Selldelete(); void Amend(); void Findin(); void Browse(); void colorsetting(); void Endprogram(); void zonghe(); struct produce_node * lianbiao(); struct produce_node *Create_produce_Doc(); struct produce_node *InsertDoc(struct produce_node *(); void chushou

11、(int count); void Append(); void Selldelete(); void Amend(); void Findin(); void Browse(); void colorsetting(); void Endprogram(); void zonghe(); struct produce_node * lianbiao(); struct produce_node *Create_produce_Doc(); struct produce_node *InsertDoc(struct produce_node *【小型超市管理系统】n); printf(系统菜单

12、显示如下); printf(nt1=【 新购商品入库 】n); printf(nt2=【 商品信息删除 】n); printf(nt3=【 商品信息修改 】n); printf(nt4=【 商品信息查询 】n); printf(nt5=【 商品信息浏览 】n); printf(nt6=【 系统颜色设置 】n); printf(nt7=【 应用程序退出 】n); printf(nt8=【 商品价值总和浏览 】n); printf(nt9=【 商品的出售管理 】n); printf(nt10=【 商品的预计的利润 】n); printf(nt请输入您要选择的菜单.); scanf(%d,&choi

13、ce); switch(choice) case 1: Append(); break; case 2: Selldelete(); break; case 3: Amend(); break; case 4: Findin(); break; case 5: Browse(); break; case 6: colorsetting(); break; case 7: Endprogram(); break; case 8: zonghe(); break; case 9: int i; printf(请输入您要卖出的数量:); scanf(%d,&i); chushou(i); break

14、; case 10: liren(); break; default: printf(nttttt输入无效,请您重新输入.); getch(); system(cls); menu(); void colorsetting() int a; char choice; system(cls); printf(nntt选择以下方案n); printf(nntt1*红底黑字n); printf(nntt2*白底黑字n); printf(nntt3*黑底红字n); printf(nntt4*绿底蓝字n); printf(nntt5*黄底紫字n); printf(nntt6*系统默认n); printf

15、(nnttttt请挑选您喜爱的颜色.); scanf(%d,&a); switch(a) case 1: system(color 40); break; case 2: system(color 70); break; case 3: system(color 04); break; case 4: system(color 21); break; case 5: system(color 65); break; case 6: system(color 1a); break; default: printf(nnttttt输入无效,重新输入.); getch(); colorsetting

16、(); printf(n选择的颜色您还满意吗?(y返回主菜单n继续选择); scanf( %c,&choice); if(choice=Y|choice=y) system(cls); menu(); else colorsetting(); int validateID(int id) FILE *fp; struct ima i; fp=fopen(ima.date,r); if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); fread(&i,sizeof(struct ima),1,fp); while(!feof(fp) if(i.id=id) fc

17、lose(fp); return 1; break; fread(&i,sizeof(struct ima),1,fp); fclose(fp); return 0; void Append() struct produce_node *i; struct produce_node j; char choice; FILE *fp; fp=fopen(ima.date,ab); i=&j; if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); labID: printf(nt请您输入要入库商品的信息.n); printf(tttt 商品的编号:); scanf

18、(%d,&j.id); if(validateID(j.id)=1) printf(tttt此编号已被使用,请您重新输入.n); goto labID; else printf( *此编号没有被使用您可以使用*n); i=lianbiao(); while(i!=NULL) fwrite(i,sizeof(struct produce_node),1,fp); i=i-next; fclose(fp); printf(tttttt 商品信息已入库成功!n); free(i); printf(n您想继续吗?(yn); scanf( %c,&choice); if(choice=Y|choice=

19、y) Append(); else system(cls); menu(); void Selldelete() struct ima i1000; struct ima temp; int delID; char choice; int index=0; int j=0; FILE *fp; fp=fopen(ima.date,r); if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); fread(&temp,sizeof(struct ima),1,fp); while(!feof(fp) iindex=temp; index+; fread(&temp

20、,sizeof(struct ima),1,fp); fclose(fp); printf(nt请输入要删除的商品的编号:); scanf(%d,&delID); fopen(ima.date,w);*打开文件* if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); for( j=0;jindex;j+) if(ij.id!=delID) fwrite(&ij,sizeof(struct ima),1,fp); fclose(fp); printf(ttttt商品信息已清除!n); printf(n您想继续吗?(yn); scanf( %c,&choice);

21、 if(choice=Y|choice=y) Selldelete(); else system(cls); menu(); void Amend() int index=0; int ID,j; char choice; struct ima i1000; struct ima temp; FILE *fp; fp=fopen(ima.date,r); if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); fread(&temp,sizeof(struct ima),1,fp); while(!feof(fp) iindex=temp; index+; fr

22、ead(&temp,sizeof(struct ima),1,fp); fclose(fp); fp=fopen(ima.date,w); if(fp=NULL) printf(ttt系统错误,请您重试.); exit(0); printf(nt请输入要修改的信息的商品的编号:); scanf(%d,&ID); for(j=0;j=index-1;j+) if(ij.id!=ID) fwrite(&ij,sizeof(struct ima),1,fp); else printf(tt商品名称修改为:); scanf(%s,ij.name); printf(tt商品生产地修改为:); scanf

23、(%s,ij.produce); printf(tt商品数量修改为:); scanf(%d,&ij.number); printf(tt商品进货单价修改为:); scanf(%lf,&ij.price); printf(tt商品出售单价修改为:); scanf(%lf,&ij.price1); fwrite(&ij,sizeof(struct ima),1,fp); fclose(fp); printf(tttt商品信息已修改.); printf(n您想继续吗?(yn); scanf( %c,&choice); if(choice=Y|choice=y) Amend(); else syste

24、m(cls); menu(); void Findin() int a=0; FILE *fp; int findID;char choice;struct ima i; fp=fopen(ima.date,r); if(fp=NULL) printf(ttt系统错误,请你重试.); exit(0); printf(nt请输入要查询的商品的编号.); scanf(%d,&findID); fread(&i,sizeof(struct ima),1,fp); while(!feof(fp) if(i.id=findID) a=1; printf(nnt*商品信息*); printf(nt商品编号.%30dn,i.id); printf(nt-); printf(nt商品名称.%30sn,i.name); printf(nt-); printf(nt生产厂家.%30sn,i.produce); printf(nt-); printf(nt进口数量.%30dn,i.number); printf(nt-); printf(nt进货价格.%30.3fn,i.price); printf(nt-)

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

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