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.
18 lines
463 B
18 lines
463 B
int search_account(FILE *fp,int accountnum)//管理员调用模块函数
|
|
{
|
|
int i =0;
|
|
for(i = 0;i< cur_account-1;i++)
|
|
{
|
|
if(accountcollection[i].account == accountnum)
|
|
{
|
|
printf("账户:%d:\n",i+1);
|
|
printf("账号:%d\n",accountcollection[i].account);
|
|
printf("姓名:%s\n",accountcollection[i].name);
|
|
printf("余额:%.2f\n",accountcollection[i].balance);
|
|
|
|
return 1;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|