#define N 30
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct production
{
int number;
char name[10];
int inprice;
int outprice;
int quantity;
}production[N];
void welcome()
{
int c;
printf(" ^^^^^^^ ^^^^^^^");
printf(" --------------------welcome--------------------");
printf(" #* *#");
printf(" #* sale of production management system *#");
printf(" #* *#");
printf(" ---------=====!what do you want to do!=====---------");
printf("");
printf(" **~~ 1 input 录入商品 ~~**");
printf(" **~~ 2 insert 插入商品 ~~**");
printf(" **~~ 3 search_name 按名称查询 ~~**");
printf(" **~~ 4 search_number 按编码查询 ~~**");
printf(" **~~ 5 delete-- 删除商品 ~~**");
printf(" **~~ 6 display- 显示信息 ~~**");
printf(" **~~ 7 profit 盈亏显示 ~~**");
printf(" **~~ 8 sort 销售额排序 ~~**");
printf(" **~~ 9 exit 退出系统 ~~**");
printf(" --------<~><~><~><~><~><~><~><~><~><~><~><~>--------");
printf("");
printf("please input you choice(A number between 1 and 9):");
}
void input1(int i)
{
printf("Please input the data:");
printf("please input the number:");
scanf("%d",&production[i].number);
printf("please input the name:");
scanf("%s",&production[i].name);