//添加新用户函数
void input()
{
struct telephone message;
char reply='y';
char save='y';
while (reply=='y')
{
system("cls");
printf("\n用户姓名:");
scanf("%s",message.client_name);
printf("\n家庭住址:");
scanf("%s",message.client_address);
printf("\n电话号码:");
scanf("%s",message.client_telephone);
printf("\n要保存吗?(y/n):");
scanf(" %c",&save);
if (save=='y')
{
save_client(message);
}
printf("\n要继续吗?(y/n):");
scanf(" %c",&reply);
}
printf("\n按任意键返回主菜单……\n");
getchar();
getchar();
}
void input()
{
struct telephone message;
char reply='y';
char save='y';
while (reply=='y')
{
system("cls");
printf("\n用户姓名:");
scanf("%s",message.client_name);
printf("\n家庭住址:");
scanf("%s",message.client_address);
printf("\n电话号码:");
scanf("%s",message.client_telephone);
printf("\n要保存吗?(y/n):");
scanf(" %c",&save);
if (save=='y')
{
save_client(message);
}
printf("\n要继续吗?(y/n):");
scanf(" %c",&reply);
}
printf("\n按任意键返回主菜单……\n");
getchar();
getchar();
}