操作6:
6
操作3:
选择0反回的主界面;
操作6查看更改情况:
7
操作4:
8
操作5:
操作6查看删除情况:
9
操作0退出。
主程序
#include
/***********************日期*******************/ typedef struct date {
int year; int month; int day; }date;
/***********************产品******************/ typedef struct productnode {
char product_name[40]; //产品名称 int product_quantity; //产品总量 int sales_quantity; //销售数量 double product_price; //产品单价 double product_income; //销售收益 int product_stock; //产品库存 date buy_time; //进货日期 date sales_time; //销售日期 struct productnode *next; }productnode,*plinklist;
/*********************货物种类**************/ typedef struct kindnode
10