//保存支出文件Р{Р?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() //主菜单Р{