- 1、本文档共27页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
仓库库存管理系统源程序(Warehouse management system source code)
仓库库存管理系统源程序(Warehouse management system source code)
# includes stdio.h
# includes stdlib.h
# includes string.h
# includes iostream.h
int shoudsave = 0;
struct: / / 物品信息定义
{
char code [10]; / / 物品编码
char name [20]; / / 物品名称
int num; / / 商品数量
int level; / / 物品等级
} item;
typedef struct node
{
struct item data;
struct node * next;
} * node, link; / / 定义为链表
void menu () / / 页面显示函数
{
system (cls); / / 清屏函数
printf (* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 《物品库存管理》 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \ n);
printf (\ n);
printf (\ n 1 物品入库管理 \ n \ t \ n 2 物品出库管理 \ n);
printf (\ n 3 浏览库内物品信息 \ n \ t \ n 4 修改物品信息 \ n);
printf (\ n 5 保存物品信息 \ n \ t \ n 0 退出库存管理 \ n);
printf (\ n);
cout * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * the * * * * * * * * * * * * * * * * * endl;
printf (\ n 请选择操作:);
}
void printstart ()
{
printf (------------------------------------------ \ n);
}
void wrong () / / 错误处理函数
{
printf (输入错误! \ n);
getchar ();
getchar ();
menu ();
return;
}
void nofind ()
{
printf (没有找到该物品! \ n);
}
void printc () / / 本函数用于输出中文
{
printf (物品编码 物品名称 物品数量 物品等级 \ n);
}
void printe (node * p) / / 输出物品信息函数
{
cout endl p - data.code p data.name p data.num p data.level;
}
node * locate (link l, char findmess [], char nameorcode []) / / 用于定位连接中, 符合要求的结点, 并返回该指针
{
node * r;
if (strcmp (nameorcode, tails) = = 0) / /
{
r = l - next;
while (r! = = null)
{
if (strcmp (r - data.code, findmess) = = 0)
return r;
r = r - next;
}
}
else
if (strcmp (nameorcode, name) = = 0) / / 按名称查询
{
r = l - next;
while (r! = = null)
{
if (strcmp (r - data.name, findmess) = = 0)
return r;
r = r - next;
}
}
return 0;
}
void add (link l) / / 增加物品函数
{
node * p, * r * d;
char code [10].
r = l;
d = l - next;
while (r - next! = = null)
r = r - next;
while (1)
{
system (cls); / / 清屏函数
cout 请输入商品编码 (输入 0 返回上一级菜单): endl;
scanf (% s co
您可能关注的文档
- 中国医科大学2015年7月考试《康复护理学》考查课试题(China Medical University July 2015 exam rehabilitation nursing examination questions).doc
- 中国医科大学2015年7月考试《急危重症护理学》考查课试题(China Medical University July 2015 examination critical and critical care examination examination questions).doc
- 中国医科大学2015年7月考试《皮肤性病护理学》考查课试题(China Medical University in July 2015 exam dermatology and venereal disease nursing examination class examination questions).doc
- 中国医科大学2015年7月考试《精神科护理学》考查课试题(Examination questions of psychiatric nursing examination, China Medical University, July 2015).doc
- 中国医科大学2015年7月考试《老年护理学》考查课试题(China Medical University examination July 2015 examination of elderly nursing examination questions).doc
- 中国医科大学2016年1月考试《肿瘤护理学》考查课试题(China Medical University January 2016 examination of oncology nursing examination questions).doc
- 中国医科大学《内科学(本科)》在线作业(China Medical University internal medicine (undergraduate) online homework).doc
- 中国医科大学《病理学(本科)》在线作业(China Medical University, pathology (undergraduate) online homework).doc
- 中国医药冷链物流发展需提速(Chinese medicine cold chain logistics development needs to speed up).doc
- 中国单源论——重构人类起源模型(Chinese single origin -- Reconstructing the model of human origin).doc
- 金融产品2024年投资策略报告:积极适应市场风格,行为金融+机器学习新发现.pdf
- 交运物流2024年度投资策略:转型十字路,峰回路又转(2023120317).pdf
- 建材行业2024年投资策略报告:板块持续磨底,重点关注需求侧复苏.pdf
- 宏观2024年投资策略报告:复苏之路.pdf
- 光储氢2024年投资策略报告:复苏在春季,需求的非线性增长曙光初现.pdf
- 公用环保2024年投资策略报告:电改持续推进,火电盈利稳定性有望进一步提升.pdf
- 房地产2024年投资策略报告:聚焦三大工程,静待需求修复.pdf
- 保险2024年投资策略报告:资产负债匹配穿越利率周期.pdf
- 政策研究2024年宏观政策与经济形势展望:共识与分歧.pdf
- 有色金属行业2024年投资策略报告:新旧需求共振&工业原料受限,构筑有色大海星辰.pdf
文档评论(0)