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.
|
|
|
|
int search_account(FILE *fp,int accountnum)//<2F><><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>ģ<EFBFBD>麯<EFBFBD><E9BAAF>
|
|
|
|
|
{
|
|
|
|
|
int i =0;
|
|
|
|
|
for(i = 0;i< cur_account-1;i++)
|
|
|
|
|
{
|
|
|
|
|
if(accountcollection[i].account == accountnum)
|
|
|
|
|
{
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|