#include #include #include using namespace std; #define NULL 0 int const MAX_NUM=20; #define LEN sizeof(struct shortage) //定义一个仓管管理信息的结构体 struct date { int year; int month; int day; }; struct shortage { int number; char tile[MAX_NUM]; int quantity;
员工信息的管理 #include "stdio.h" #include "stdlib.h" # include "string.h" class CA { char *pc; char c[5]; int h; public: struct stu { int num; char name[20]; int tel; char add[50]; }s,*p; FILE *fp; CA()//文件的定义和存储 { int h=1; p=(stu*)malloc(sizeof(stu)); if