#include #include #include struct Data { char name[20]; char riqi[8]; float money; char beizhu[50]; }; struct list { struct Data info; struct list *next; }; struct list *Inhead=NULL; struct list *Intail=NULL; struct list *zhichuhead=NULL; struct list *zhichutail=NULL; struct list *temp=NULL; void chaxun_income(); void chaxun_zhichu(); void xiugai_income(); void xiugai_zhichu(); void Save_income() { FILE *fp; fp=fopen("D:\家庭财务管理.txt","w"); struct list *p = Inhead; while(p != NULL) { fwrite(&p->info, sizeof(struct Data), 1, fp); p = p->next; } fclose(fp); } void Save_zhichu() { FILE *fp; fp=fopen("D:\家庭财务管理支出.txt","w"); struct list *p = zhichuhead; while(p != NULL) { fwrite(&p->info, sizeof(struct Data), 1, fp); p = p->next; } fclose(fp); } void Open() { FILE *fp; fp=fopen("D:\家庭财务管理.txt","r"); if(fp!=NULL) { struct Data linshi; while(fread(&linshi, sizeof(struct Data), 1, fp) == 1) { temp=(struct list*)malloc(sizeof(struct list)); temp->info=linshi; temp->next=NULL; if(Inhead == NULL) { Inhead = temp; Intail = temp; } else { Intail->next = temp; Intail = temp; } } fclose(fp); } } void Menu() { system("cls"); printf("\n"); printf("\n"); printf("\n"); printf("\n"); printf("******************\n"); printf("欢迎使用家庭财务管理系统\n"); printf("******************\n"); printf(" \n"); printf(" 1:收入操作 \n"); printf(" 2:支出操作 \n"); printf(" 3:统计操作 \n"); printf(" 0:退出 \n"); } void Openzhichu() { FILE *fp; fp=fopen("D:\家庭财务管理支出.txt","r"); if(fp!=NULL) { struct Data linshi; while(fread(&linshi, sizeof(struct Data), 1, fp) == 1) { temp=(struct list*)malloc(sizeof(struct list)); temp->info=linshi; temp->next=NULL; if(zhichuhead == NULL) { zhichuhead = temp; zhichutail = temp; } else { zhichutail->...