You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
473 B

void del_account(FILE *fp,int accountnum)//删除账号信息模块
{
int i;
if(search_account(fp,accountnum)==0)
printf("无法找到此账户!\n");
else
{
for(i = 0;i<cur_account-1;i++)
if(accountcollection[i].account != accountnum)
fprintf(fp,"%d %d %s %.2f\n",
accountcollection[i].account,accountcollection[i].key,accountcollection[i].name,accountcollection[i].balance);
printf("删除成功!\n");
}
}