資源簡介
代碼片段和文件信息
#include
#include
#include
#define?NUM?5
/*?【自學去】網站收集?http://www.zixue7.com?*/
struct?item{
char?brand[20];
char?id[10];
float?in_price;
float?out_price;
int???storage;
};
struct?item_node{
struct?item?wanted;
int????amount;
struct?item_node?*next;
};
int?menu();
void?establish();
void?dis_all();
void?shop_cart();
int??cart_menu();
void?add();
void?display();
void?calculate();
struct?item?goods[NUM];
struct?item_node?*cart;
int?main(void)
{
printf(“***********************************\n“);
printf(“?????歡迎進入超市管理系統\n“);
printf(“***********************************\n“);
while(1)
{
switch(menu())
{
case?1:
establish();break;
case?2:
dis_all();break;
case?3:
shop_cart();break;
case
評論
共有 條評論