#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> #include<process.h> #include<time.h> #define Null 0 struct goods*input(void); struct goods*open(void); void add(struct goods*head); struct goods*delete(struct goods*head); struct goods*amend(struct goods*head); void print(struct goods*head); void find(struct goods*head); void statistics(struct goods*head); void list1(struct goods*head); struct goods*search(struct goods*head); struct goods*incr1(struct goods*head); void list2(struct goods*head); struct goods*incr2(struct goods*head); struct goods*sort1(struct goods*head); struct goods*sort2(struct goods*head); struct goods*sort3(struct goods*head); struct goods*sort4(struct goods*head); struct goods /*定义货物数据结构体*/ { char number[20]; /*编号*/ char name[20]; /*名称*/ float Pprice; /*进货价*/ float Sprice; /*销售价*/ char ori[30]; /*产地*/ struct { int year; int month; int day; }Pdate; /*生产日期*/ int Slife; /*保质期*/ int tim; /*过期时间*/ int inv; /*库存量*/ int left; /*剩余量*/ int Bsold; /*已销售量*/ float income; /*收益*/ struct goods*next; }; int main(void) { struct goods*head; char choose='