//保存函数
void client_save(struct client message)
{
FILE *fp;
fp=fopen("message.dat","a+");
if (fp!=NULL)
{
fwrite(&message,sizeof(struct client),1,fp);
}
else
{
printf("\n文件错误\n");
printf("\n按任意返回主菜单……");
getchar();
return;
}
fclose(fp);
}
void client_save(struct client message)
{
FILE *fp;
fp=fopen("message.dat","a+");
if (fp!=NULL)
{
fwrite(&message,sizeof(struct client),1,fp);
}
else
{
printf("\n文件错误\n");
printf("\n按任意返回主菜单……");
getchar();
return;
}
fclose(fp);
}