c语言--仓库管理系统(3)

c语言--仓库管理系统(3)

ID:22501678

大小:74.00 KB

页数:19页

时间:2018-10-29

c语言--仓库管理系统(3)_第1页
c语言--仓库管理系统(3)_第2页
c语言--仓库管理系统(3)_第3页
c语言--仓库管理系统(3)_第4页
c语言--仓库管理系统(3)_第5页
资源描述:

《c语言--仓库管理系统(3)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、/*仓库管理系统*//******头文件(.h)***********/#include"stdio.h"#include"bios.h"#include"dos.h"#include"conio.h"#include"stdlib.h"#include"string.h"#include"mem.h"#include"ctype.h"#include"alloc.h"typedefstructz1{charnum[11];charname[15];floatprice;intamount;structz1*prior;structz1*next;}DATA;structz1*First;s

2、tructz1*Last;/******函数原型*********/voidinit();voidcreate();voiddelete();voidsearch();voidsave();voidload();voidappend();voidcopy();voidsort();voidindex();voidlist();voidabout();voidkey();intmenu_select();/*******主函数开始**********/main(){key();for(;;){switch(menu_select()){case0:init();break;case1:crea

3、te();break;case2:list();break;case3:search();break;case4:delete();break;case5:append();break;case6:save();break;case7:load();break;case8:copy();break;case9:sort();break;case10:index();break;case11:about();break;case12:exit(0);}}}menu_select(){char*f[]={"*****Cang****MENU****KU*****","0.initlist","1

4、.Enterlist","2.Listall","3.Searchrecordonname","4.Deletearecord","5.Appendrecordtofile","6.Savedatatothefile","7.Loaddatafromthefile","8.Copythefiletonewfile","9.Sortonprice","10.Indexonnumber","11.Aboutwriter","12.Quit"};chars[80];inti;intkey=0;intc=0;gotoxy(65,25);printf("ByYoungshook");gotoxy(

5、1,25);printf("pressanykeyEntermenu......");getch();clrscr();gotoxy(65,25);printf("ByYoungshook");textcolor(YELLOW);textbackground(BLUE);gotoxy(10,2);putch(0xda);for(i=1;i<44;i++)putch(0xc4);putch(0xbf);for(i=3;i<22;i++){gotoxy(10,i);putch(0xb3);gotoxy(54,i);putch(0xb3);}gotoxy(10,22);putch(0xc0);fo

6、r(i=1;i<44;i++)putch(0xc4);putch(0xd9);window(11,3,53,21);clrscr();for(i=0;i<14;i++){gotoxy(10,i+1);cprintf("%s",f[i]);}i=1;gotoxy(10,2);textbackground(LIGHTGREEN);cprintf("%s",f[1]);gotoxy(10,2);while(key!=13){while(bioskey(1)==0);key=bioskey(0);key=key&0xff?key&0xff:key>>8;gotoxy(10,i+1);textback

7、ground(BLUE);cprintf("%s",f[i]);if(key==72)i=i==1?13:i-1;if(key==80)i=i==13?1:i+1;gotoxy(10,i+1);textbackground(LIGHTGREEN);cprintf("%s",f[i]);c=i-1;}textbackground(BLACK);window(1,1,80,25);returnc;}voidkey

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。