城区古树名木管理系统
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
#include
#include
#include
typedef struct protect{
char quhao[7];
char bianhao[5];
char yanghuren[20];
char riqi[11];
char cuosi[20];
char zuangkuang[20];
struct protect *prot_next;
}prot;
typedef struct gushumingmu{
char quhao[7];
char bianhao[5];
char name[20];
char xueming[20];
char kesu[20];
int shuling;
char querensijian[11];
char baohujibie;
char zaizididian[30];
struct protect *prot_head;
struct gushumingmu *gusm_next;
}gusm;
typedef struct chengquxinxi{
char quhao[7];
char quming[20];
char bumen[30];
char dizi[30];
char dianhua[13];
char fuzeren[20];
struct gushumingmu *gusm_head;
struct chengquxinxi *chex_next;
}chex;
chex *chex_head;
void create_cross_list(chex **);
void create_gusm(gusm **,chex *);
void create_prot(prot **prot_head,gusm *p_gusm); int load_cross_list(chex **chex_head);
int save_cross_list(chex *chex_head);
void trav_chex(void);
void trav_gusm(gusm *);
void trav_prot(prot *);
void traverse_cross_list(chex *chex_head);
void edit_cross_list(void);
void count_cross_list(chex *chex_head);
void modf_chex(chex **chex_head);
void modf_gusm(chex **p);
void modf_prot(chex **p);
void delt_chex(chex **p);
void delt_gusm(chex **p);
void delt_prot(chex **p);
void inst_chex(chex **p);
void inst_gusm(chex **p);
void inst_prot(chex **p);
void count(void);
int levl_qcot(char *,char);
int zhuk_qcot(char *,char *);
int kind_qcot(char *,char *);
void one_levl_cout(void);
void one_zhuk_cout(void);
void one_kind_cout(chex *P);
void totl_levl_cout(chex *p);
void totl_zhuk_cout(void);
void totl_kind_cout(chex *p);
void one_shul_cout(void);
void totl_shul_cout(void);
int shul_qcot(char *,int);
main()
{
char ch,ch1;
printf(" * \n"
" ** * ********* ** **\n"
" ** ** ** **** ** **\n"
" ** ** ** ** ******** ** **\n"
" ** ** ** ** ** ** ** \n"
" * * ******** ******** ********\n"
"\n"
" ******** ********** * ** *********\n"
" ** ** ** ** ** ** ** **\n"
" ** ** ** ** ** ** ** *********\n"
" ** ** ** ** ** ** ****\n"
" ******** ********** ** * **********\n"
"\n");
do
{
printf(" *************************************************\n"
" ** 1:input and creat the cross list. **\n"
" ** **\n"
" ** 2:save the cross list. **\n"
" ** **\n"