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.
21 lines
526 B
21 lines
526 B
int search_account(FILE *fp,int accountnum,int flag)
|
|
{
|
|
int i =0;
|
|
for(i = 0;i< cur_account-1;i++)
|
|
{
|
|
if(accountcollection[i].account == accountnum)
|
|
{
|
|
if(flag == 1)
|
|
{
|
|
printf("ÕË»§£º%d:\n",i+1);
|
|
printf("Õ˺Å:%d\n",accountcollection[i].account);
|
|
printf("ÐÕÃû:%s\n",accountcollection[i].name);
|
|
printf("Óà¶î:%.2f\n",accountcollection[i].balance);
|
|
}
|
|
|
|
return i + 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|