//客户信息输入函数
struct client
{
int client_code;
char client_name[20];
float client_money;
};//定义用户信息结构体
struct business
{
int business_code;
char business_type;
float business_money;
};//定义银行交易记录结构体
void input()
{
struct client message;
char reply='y';
char save='y';
while (reply=='y')
{
system("cls");
printf("\n用户信用卡号:");
scanf("%d",&message.client_code);
printf("\n用户姓名:");
scanf("%s",&message.client_name);
printf("\n开户金额:");
scanf("%f",&message.client_money);
printf("\n是否保存用户信息?(y/n):");
scanf(" %c",&save);
if (save=='y')
{
save(message);
}
printf("\n是否需要继续?(y/n):");
scanf(" %c",&reply);
}
printf("\n按任意返回主菜单……");
getchar();
getchar();
}
struct client
{
int client_code;
char client_name[20];
float client_money;
};//定义用户信息结构体
struct business
{
int business_code;
char business_type;
float business_money;
};//定义银行交易记录结构体
void input()
{
struct client message;
char reply='y';
char save='y';
while (reply=='y')
{
system("cls");
printf("\n用户信用卡号:");
scanf("%d",&message.client_code);
printf("\n用户姓名:");
scanf("%s",&message.client_name);
printf("\n开户金额:");
scanf("%f",&message.client_money);
printf("\n是否保存用户信息?(y/n):");
scanf(" %c",&save);
if (save=='y')
{
save(message);
}
printf("\n是否需要继续?(y/n):");
scanf(" %c",&reply);
}
printf("\n按任意返回主菜单……");
getchar();
getchar();
}