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.
|
|
|
|
void del_account(FILE *fp,int accountnum)//ɾ<><C9BE><EFBFBD>˺<EFBFBD><CBBA><EFBFBD>Ϣģ<CFA2><C4A3>
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
if(search_account(fp,accountnum)==0)
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>˻<EFBFBD><EFBFBD><EFBFBD>\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("ɾ<EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>!\n");
|
|
|
|
|
}
|
|
|
|
|
}
|