仓库管理系统c语言 论文,仓库管理系统C语言.doc

#include

#include

#include

#include

#define LIST_INIT_SIZE 100 //初始化的长度

#define LIST_INCREMENT 20 //可增加的长度

int i;//定义全局变量i

static struct people *p1,*p,*q;

typedef struct List{

struct people *elem; //指向每个成员的指针

int length; //成员的当前个数

int listsize; //成员的最大长度个数

}List;

typedef struct people{

int num; //这批货物的序列号

char info1[20]; //这类货物的名称

int info2; //此类货物的数量

char info3[20]; //负责人名称

}People;

int copy(struct people *a,struct people *b);

bool isEqaulsOfStruct(struct people* a,struct people* b);

bool isCharArrayEqauls(char a[],char b[],int len);

int ArrayCopy(char a[],char b[],int length);

int read(char filename[],List S);

bool compareCharArray(char a[],char b[],int len);

int InitList(List &L);

int read(FILE* &fp,List &S);

int ListInsert(List &L,int i,struct people *e);

int login();

int xinxi();

int danju();

int weihu();

int systeminfo();

int managerinfo();

int fmain();

int isover();

int tuichu();

int infoalive(List L,int m);

int adddanju(FILE* fp);

int deletedanju(FILE* fp);

int designdanju(FILE* fp);

int tongji();

int quetecenter();

int statistics();

int faultselect();

int main(){

//主函数

if(login()==0)

fmain();

else

return 0;

return 0;

}

int fmain(){

//主函数的副本,用于函数的嵌套

int menu;

printf("********************************************************************************\n");

printf("\t\t*\t\t1.基本信息(选对应的数字输入) *\n");

printf("\t\t*\t\t2.单据中心 *\n");

printf("\t\t*\t\t3.查询统计 *\n");

printf("\t\t*\t\t4.系统管理 *\n");

printf("\t\t*\t\t5.退出系统 *\n");

printf("********************************************************************************\n");

printf("****\n");

scanf("%d",&menu);

printf("****\n");

if(menu==1){

//基本信息

xinxi();

isover();

}

else if(menu==2){

//单据中心

danju();

isover();

}

else if(menu ==3){

//

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值