没有合适的资源?快使用搜索试试~ 我知道了~
c++综合实验-儿童商品仓库管理系统报告 (2).docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 143 浏览量
2022-11-07
14:37:04
上传
评论
收藏 470KB DOCX 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/86923840/0001-e39df696b83a96eba3f686a83cdcac1e_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
28页
...
资源推荐
资源详情
资源评论
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/release/download_crawler_static/86923840/bg1.jpg)
C++程序设计模拟试卷(一)
西南交通大学
课程设计
年
学
姓
专
级:
号:
名:
业:
指导老师:
二零一三年六月
一.课程设计要求(简要描述课程设计的要求)
实现一个简单的儿童商品仓库管理系统。系统的主要功能是登记仓库中各个儿童用品的信息
情况,对部分信息进行检查和处理,并将结果保存。假设仓库中有 3 种不同类型的商品:食品、
鞋子、玩具。
对于食品,要求检查是否过期,并作相应处理;对于鞋子,要求检查是否是过季产品,如果
是,就要做相应处理。
二.模块划分(说明函数和类的定义)
查看信息模块;
添加货物模块;
取出货物模块;
修改信息模块;
三.源程序(程序代码,附部分注释)
#include"stdafx.h"
#include"time.h"
#include<iostream>
页脚内容
1
![](https://csdnimg.cn/release/download_crawler_static/86923840/bg2.jpg)
C++程序设计模拟试卷(一)
usingnamespacestd;
structtimes
{
intyear,month,day;
};
classchildgoods
{
public :
virtualvoidinputinformation()=0;
virtualvoidadd()=0;
voidtotalnumber();
public :
charname[20];
doublenumber;
floatbid;//进价;
intstock;//库存;
timesstorage_time;//入库时间;
intinputnumber;
};
{
classfood:publicchildgoods
public :
food(){next=NULL;}
voidinputinformation();
voidchangeinformation(food**f);
voidadd(){};
页脚内容
2
![](https://csdnimg.cn/release/download_crawler_static/86923840/bg3.jpg)
C++程序设计模拟试卷(一)
voidshow(food*f);
voidshowall();
friendvoidaddfood(food**f);
friendvoidgetfood(food**f);
public:
timesshelf_life;//保质期;
food*next;
};
voidfood::show(food*f)
{
intnum;
food*temp;
cout<<"请输入所要查看货物的编号."<<endl;
cin>>num;
temp=f;
if(temp->number==num)
temp->showall();
else
{
while(temp!=NULL)
{
if(temp->number==num)
break;
temp=temp->next;
}
temp->showall();
页脚内容
3
![](https://csdnimg.cn/release/download_crawler_static/86923840/bg4.jpg)
C++程序设计模拟试卷(一)
}
}
voidfood::showall()
{
cout<<"名称编号进价库存入库时间:年月日保质期:年月日"<<endl;
cout<<name<<""
<<number<<""
<<bid<<""
<<stock<<""
<<storage_time.year<<""
<<storage_time.month<<""
<<storage_time.day<<""
<<shelf_life.year<<""
<<shelf_life.month<<""
<<shelf_life.day<<endl;
time_tnowtime;
nowtime=time(NULL);
doublesafetime;
safetime=((storage_time.year+shelf_life.year-
1970)*31536000+(storage_time.month+shelf_life.month)*2592000+(storage_time.day+shelf_li
fe.day)*86400);
if(safetime>nowtime)
cout<<"本食品尚未过期."<<endl;
else
cout<<"本食品已过期,请尽快处理!"<<endl;
}
voidfood::inputinformation()
页脚内容
4
![](https://csdnimg.cn/release/download_crawler_static/86923840/bg5.jpg)
C++程序设计模拟试卷(一)
{
cout<<"名称:"<<endl;
cin>>name;
cout<<"编号:"<<endl;
cin>>number;
cout<<"进价:"<<endl;
cin>>bid;
cout<<"入库数量:"<<endl;
cin>>inputnumber;
cout<<"入库时间:"<<endl<<"年:";
cin>>storage_time.year;
cout<<"月:";
cin>>storage_time.month;
cout<<"日:";
cin>>storage_time.day;
cout<<"保质期:"<<endl<<"年:";
cin>>shelf_life.year;
cout<<"月:";
cin>>shelf_life.month;
cout<<"日:";
cin>>shelf_life.day;
stock=inputnumber;
}
{
voidfood::changeinformation(food**f)
intoption,changenum;
页脚内容
5
剩余27页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/3c39599dc7cf4373a282763035024fb7_m0_62089210.jpg!1)
春哥111
- 粉丝: 1w+
- 资源: 5万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- HC32F460智能台灯上位机
- HC32F460智能台灯 立创EDA专业版工程
- 基于Matlab的2Q-FSK移频键控通信系统仿真
- 基于Node.js+MySQL开发的开源微信小程序商城
- 基于Python实现GNU Radio上的OFDM通信系统仿真及实测
- CnWizards delphi插件 变量高亮 delphi工具
- 用K210进行垃圾识别,通过串口发送不同信号给stm32,控制步进电机进行分类,并且语音播报.zip
- 基于Matlab 实现单径瑞利信道下,交织与卷积编码对误码率影响仿真
- [金融、财务数据] Wrds RepRisk (RRI指标)数据集RepRisk
- 基于PCL的平面点云格网可视化程序代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)