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.
13 lines
398 B
13 lines
398 B
void list_account(FILE *fp)//列出所有账号信息模块函数
|
|
{
|
|
int i =0;
|
|
printf("合计%d个账号:\n",cur_account-1);// cur_account减去多加的1
|
|
for(i = 0;i< cur_account-1;i++)
|
|
{
|
|
printf("账户:%d:\n",i+1);
|
|
printf("账号:%d\n",accountcollection[i].account);
|
|
printf("姓名:%s\n",accountcollection[i].name);
|
|
printf("余额:%.2f\n",accountcollection[i].balance);
|
|
}
|
|
}
|