#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