小型超市库存管理系统c语言作业,C语言版商品库存管理系统.doc

.

Word 资料

建议使用VS打开运行

#pragma once

#include

typedef struct information //商品信息

{

char number[20]; //编号

char sname[20]; //名称

float price; //价格

int count; //数量

char dath[20]; //生产日期

struct information *next;

}inf;

void menu(inf *head); //显示主菜单

inf *create(); //创建链表

void Input(inf *head); //输入商品信息

void tianjia(inf *head); //添加商品信息

void output(inf *head); //输出商品信息

void chaxun(inf *head); //查询商品信息

void chaxun_number(inf *head); //按编号查询

void chaxun_sname(inf *head); //按名称查询

void xiugai(inf *head); //修改商品信息

void shanchu(inf *head); //删除商品信息

void write_file(inf *head); //保存商品信息到文件

void paixu(inf *head);

inf *Read__file(); //读取文件内商品信息

void freeh(inf *head); //退出程序

#define _CRT_SECURE_NO_WARNINGS

#include

#include

#include

#include

#include

#include

#pragma comment(lib, "WINMM.lib")

#include"标头.h"

void menu(inf *head) //显示菜单

{

PlaySound(TEXT("sounds\\背景.wav"), NULL,

SND_FILENAME | SND_ASYNC | SND_LOOP);

system("color 3B");

printf("\t\t*****************************************************\n");

printf("\t\t\t\t欢迎进入商品库存管理系统\n");

printf("\t\t*****************************************************\n");

printf("\n");

printf("\t\t|====================================================|\n");

printf("\t\t|______________________基本信息______________________|\n");

printf("\t\t| 1.商品信息录入 | 2.添加商品信息 |\n");

printf("\t\t| 3.查找商品信息 | 4.修改商品信

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值