超市商品管理系统 c语言编程,超市商品管理系统C语言源代码

这是一个使用C语言编写的超市商品管理系统,包括商品信息的录入、查询、修改、删除等功能。系统能够按照库存量进行排序,并统计库存总量。
摘要由CSDN通过智能技术生成

#include

#include

#include #include

#include

#include

#define MAX 20

#define PRINT1 printf("---------------------------------------------------------\n")

#define PRINT2 printf("商品号--商品名称--商品种类--销售价格--生产日期(年-月-日)--保质期\n")

#define PRINT3 printf("%4d%8s%8s%8d%8d-%2d-%2d%4d\n",goods[i].num,goods[i].name,goods[i].kind,goods[i].out_price,goods[i].pro_time.year,goods[i].pro_time.month,goods[i].pro_time.day,goods[i].save_day)

int sum;

struct date

{

int year;

int month;

int day;

};

struct goods_type /*定义结构体*/

{

int num;

char name[10];

char kind[10];

int amount;

int in_price;

int out_price;

struct date pro_time;

int save_day;

int profit;

}goods[MAX];

Save_Message(int sum);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值