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 insert_account(FILE *fp)//<2F>½<EFBFBD><C2BD>˻<EFBFBD>ģ<EFBFBD>麯<EFBFBD><E9BAAF>
|
|
|
|
|
{
|
|
|
|
|
BANKACCOUNT newaccount;
|
|
|
|
|
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˺<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
|
|
|
|
|
printf(">><3E>˺<EFBFBD>:");
|
|
|
|
|
scanf("%d",&(newaccount.account));
|
|
|
|
|
printf(">><3E><><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%d",&(newaccount.key));
|
|
|
|
|
printf(">><3E><><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%s",newaccount.name);
|
|
|
|
|
printf(">><3E><><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%f",&(newaccount.balance));
|
|
|
|
|
fseek(fp,0L,SEEK_END);
|
|
|
|
|
fprintf(fp,"%d %d %s %.2f\n",newaccount.account,newaccount.key,newaccount.name,newaccount.balance);
|
|
|
|
|
}
|