C 语言版商品库存管理系统建议使用 VS 打开运行#pragmaonce#includetypedefstructinformation//商品信息charnumber[20];//编号charsname[20];//名称floatprice;//价格intcount;//数量chardath[20];//生产日期structinformation*next;}inf;voidmenu(inf*head);//显示主菜单inf*create();//创建链表voidInput(inf*head);//输入商品信息voidtianjia(inf*head);//添加商品信息voidoutput(inf*head);//输出商品信息voidchaxun(inf*head);//查询商品信息voidchaxun_number(inf*head);//按编号查询voidchaxun_sname(inf*head);//按名称查询voidxiugai(inf*head);//修改商品信息voidshanchu(inf*head);//删除商品信息voidwrite_file(inf*head);//保存商品信息到文件voidpaixu(inf*head);inf*Read__file();//读取文件内商品信息voidfreeh(inf*head);//退出程序#define_CRT_SECURE_NO_WARNINGS#include#include#include#include#include#include#pragmacomment(lib,"WINMM.lib")#include"标头.h"voidmenu(inf*head)//显示菜单PlaySound(TEXT("sounds\\背景.wav"),NULL,SND_FILENAME|SND_ASYNC|SND_LOOP);system("color3B");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.修改商品信息|\n");printf("\t\t|5.删除商品信息|6.保存文件信息|\n");printf("\t\t|7.读取文件信息|8.显示商品信息|\n");printf("\t\t|9.按价格从高到低进行排序|\n");printf("\t\t|_________________0.释放链表。退出___________________|");printf("\n\t\t\t 请输入你的选项(0---8):\n");printf("\n");printf("\t 请输入你的选择:\n");inf*create()//创建链表inf*p;p=(inf*)malloc(sizeof(structinformation));if(p==NULL)printf("链表创建失败.\n");exit(0);p->next=NULL;return(p);voidInput(inf*head)//录入货物信息inf*p;inti,n;printf("请输入:你想录入多少个商品信息:\n");scanf("%d",&n);f...