#include
#include
#define LEN sizeof(struct goods)
struct goods
{
long number;
char name[20];
int count;
struct goods* next;
};
struct goods* creat(struct goods* head);
struct goods* destory(struct goods* head);
struct goods* sell(long number,int count,struct goods* head);
struct goods* stock(long number,int count,struct goods* head);
void list(struct goods* head);
struct goods* del(struct goods* p1,struct goods* head);
void main()
{
struct goods* head=NULL;
long number;
int count,choose;
do
{
printf("1. shu ru sang pin xin xi\n2. xiao shou\n3. chao zhao\n4. lei ju sang pin xin xi\n5. qin chu suo you sang pin\n6. exit\n\n");
printf("input choose:\n");
scanf("%d",&choose);