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 list_account(FILE *fp)
|
|
|
|
|
{
|
|
|
|
|
int i =0;
|
|
|
|
|
printf("<EFBFBD>ϼ<EFBFBD>%d<><64><EFBFBD>˺<EFBFBD>:\n",cur_account-1);// cur_account<6E><74>ȥ<EFBFBD><C8A5><EFBFBD>ӵ<EFBFBD>1
|
|
|
|
|
for(i = 0;i< cur_account-1;i++)
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD>˻<EFBFBD><EFBFBD><EFBFBD>%d:\n",i+1);
|
|
|
|
|
printf("<EFBFBD>˺<EFBFBD>:%d\n",accountcollection[i].account);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%s\n",accountcollection[i].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:%.2f\n",accountcollection[i].balance);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
int search_key(FILE *fp,int key,int i)
|
|
|
|
|
{
|
|
|
|
|
if (accountcollection[i].key == key)
|
|
|
|
|
return 1;
|
|
|
|
|
else
|
|
|
|
|
return 0;
|
|
|
|
|
}
|