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.
p36ca2sr7/通讯录管理系统.c

333 lines
7.5 KiB

6 years ago
#include<stdio.h>
#include<stdlib.h>
#include <string.h>
void caidan(); //<2F><><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><E6BAAF>
void xuanze(); //ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD>
void luru(); //¼<><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
void save(int t); //<2F><>Ϣ¼<CFA2><C2BC><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
void liulan(); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
void chaxun(); //<2F><>ѯ<EFBFBD><D1AF><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD>
void chazhao1(); //<2F><><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD>
void chazhao2(); //<2F><><EFBFBD><EFBFBD><E7BBB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void chazhao3(); //<2F><><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>
void change();
void xiugai(int n); //<2F>޸Ĺ<DEB8><C4B9>ܺ<EFBFBD><DCBA><EFBFBD>
void fanhui(); //<2F><><EFBFBD>غ<EFBFBD><D8BA><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>
struct student //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9B9>
{
char name[20]; //<2F><><EFBFBD><EFBFBD>
char area[20]; //<2F><><EFBFBD><EFBFBD>
char tel[20]; //<2F><EFBFBD><E7BBB0><EFBFBD><EFBFBD>
char email[20]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ
};
struct student a[100]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD><CDB1><EFBFBD>
FILE *fp; //<2F>ļ<EFBFBD>ָ<EFBFBD><D6B8>
int i; //ȫ<>ֱ<EFBFBD><D6B1><EFBFBD>
/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
int main(void)
{
xuanze();
return 0;
}
/*ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD>*/
void xuanze()
{
int i;
do
{
system("cls"); //<2F><><EFBFBD><EFBFBD>
caidan();
printf(" <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD>ѡ<EFBFBD>");
scanf("%d",&i);
switch(i)
{
case 1: luru(); break;
case 2: liulan(); break;
case 3: chaxun(); break;
case 4: change(); break;
case 0: printf(" <20><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD>˳<EFBFBD>\n");exit(0);
default: printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>֣<EFBFBD>\n");
}
}while(1);
}
/*<2A><><EFBFBD>˵<EFBFBD>*/
void caidan()
{
printf(" \n");
printf(" <20><>ӭʹ<D3AD><CAB9>ͨѶ¼<D1B6><C2BC><EFBFBD><EFBFBD>ϵͳ\n");
printf(" --------------------------------------\n");
printf(" ***¼<><C2BC><EFBFBD><EFBFBD>Ϣ<EFBFBD>밴 1***\n");
printf(" ***<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>밴 2***\n");
printf(" ***<2A><>ѯ<EFBFBD><D1AF>Ϣ<EFBFBD>밴 3***\n");
printf(" ***<2A>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD>밴 4***\n");
printf(" ***<2A>˳<EFBFBD>ϵͳ<CFB5>밴 0***\n");
printf(" --------------------------------------\n");
}
/*<2A><>Ϣ¼<CFA2><C2BC>*/
void luru()
{
int i=0,n,t;
do
{
printf(" *----------------------------------*\n");
printf(" *----------------------------------*\n");
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
fflush(stdin); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
scanf("%s",a[i].name);
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",a[i].area);
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><E7BBB0><EFBFBD>");
scanf("%s",a[i].tel);
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>");
scanf("%s",a[i].email);
i++;
t=i;
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>밴1<EBB0B4><31><EFBFBD><EFBFBD><EFBFBD>ز˵<D8B2><CBB5>밴2:");
scanf("%d",&n);
}while(n==1);
save(t); //<2F><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
printf(" <20><>Ϣ¼<CFA2><C2BC><EFBFBD><EFBFBD><EFBFBD>ϣ<EFBFBD>\n");
xuanze(); //<2F><><EFBFBD>ز˵<D8B2>
}
/*<2A><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>*/
void save(int t)
{
int i;
if((fp=fopen("shuju.txt","a"))==NULL) //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>
{
printf("File open error!\n");
exit(0);
}
for(i=0;i<t;i++)
{
fprintf(fp,"%s\t%s\t%s\t%s\t",a[i].name,a[i].area,a[i].tel,a[i].email); //<2F><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
}
if(fclose(fp)) //<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
{
printf("<EFBFBD>ر<EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
exit(0);
}
}
void liulan()
{
int n,j;
fp=fopen("shuju.txt","r"); //<2F><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
for(i=0;feof(fp)==0;i++)
fscanf(fp,"%s %s %s %s\n",a[i].name,a[i].area,a[i].tel,a[i].email);
fclose(fp); //<2F>ر<EFBFBD><D8B1>ļ<EFBFBD>
printf(" <20><><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\t\t\n");
for(j=0;j<i;j++)
printf(" %s\t%s\t%s\t%s\t\t\n",a[j].name,a[j].area,a[j].tel,a[j].email); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
printf(" -----------------------------------------\n");
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>\n");
system("pause"); //<2F><>ͣ<EFBFBD><CDA3><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><D0B3><EFBFBD>
xuanze();
}
void chaxun()
{
int n;
printf(" 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7BBB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 3<><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>\n");
do
{
printf(" <20><>ѡ<EFBFBD><D1A1>ѡ<EFBFBD>");
scanf("%d",&n);
switch(n)
{
case 1:chazhao1(); break;
case 2:chazhao2(); break;
case 3:chazhao3(); break;
default:printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!\n");
}
}while(1);
}
void chazhao1()
{
int flag=1,i; //flag״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2>ҽ<EFBFBD><D2BD><EFBFBD>
char name[20];
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",name);
if((fp=fopen("shuju.txt","r"))==NULL) //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
{
printf("File open error!\n");
exit(0);
}
for(i=0;feof(fp)==0;i++)
{
fscanf(fp,"%s %s %s %s\n",a[i].name,a[i].area,a[i].tel,a[i].email);
if(strcmp(name,a[i].name)==0) //strcmp<6D><70><EFBFBD><EFBFBD><EFBFBD>Ƚ<EFBFBD><C8BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򷵻<EFBFBD>0
{
printf(" <20><><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\t\t\n");
printf(" %s\t%s\t%s\t%s\t\t\n",a[i].name,a[i].area,a[i].tel,a[i].email); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
flag=0;
break;
}
else
flag=1;
}
fclose(fp); //<2F>ر<EFBFBD><D8B1>ı<EFBFBD>
if(flag==1)
printf(" <20><><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>\n");
else
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
fanhui();
}
void chazhao2()
{
int flag=1,i; //flag״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2>ҽ<EFBFBD><D2BD><EFBFBD>
char tel[20];
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>˵ĵ绰<C4B5><E7BBB0><EFBFBD>");
scanf("%s",tel);
if((fp=fopen("shuju.txt","r"))==NULL) //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
{
printf("File open error!\n");
exit(0);
}
for(i=0;feof(fp)==0;i++)
{
fscanf(fp,"%s %s %s %s\n",a[i].name,a[i].area,a[i].tel,a[i].email);
if(strcmp(tel,a[i].tel)==0) //strcmp<6D><70><EFBFBD><EFBFBD><EFBFBD>Ƚ<EFBFBD><C8BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򷵻<EFBFBD>0
{
printf(" <20><><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\t\t\n");
printf(" %s\t%s\t%s\t%s\t\t\n",a[i].name,a[i].area,a[i].tel,a[i].email); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
flag=0;
break;
}
else
flag=1;
}
fclose(fp);
if(flag==1)
printf(" <20><><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>\n");
else
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
fanhui();
}
void chazhao3()
{
int flag=1,i; //flag״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϲ<D0B6><CFB2>ҽ<EFBFBD><D2BD><EFBFBD>
char email[20];
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>");
scanf("%s",email);
if((fp=fopen("shuju.txt","r"))==NULL) //<2F><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
{
printf("File open error!\n");
exit(0);
}
for(i=0;feof(fp)==0;i++)
{
fscanf(fp,"%s %s %s %s\n",a[i].name,a[i].area,a[i].tel,a[i].email);
if(strcmp(email,a[i].email)==0) //strcmp<6D><70><EFBFBD><EFBFBD><EFBFBD>Ƚ<EFBFBD><C8BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򷵻<EFBFBD>0
{
printf(" <20><><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\t\t\n");
printf(" %s\t%s\t%s\t%s\t\t\n",a[i].name,a[i].area,a[i].tel,a[i].email); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
flag=0;
break;
}
else
flag=1;
}
fclose(fp);
if(flag==1)
printf(" <20><><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>\n");
else
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
fanhui();
}
/*<2A><><EFBFBD>ز˵<D8B2><CBB5><EFBFBD><EFBFBD><EFBFBD>*/
void fanhui()
{
int b;
printf(" ---------------------------------\n");
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>\n");
system("pause"); //<2F><>ͣ
xuanze();
}
/*<2A>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>*/
void change()
{
int i,t,n=0,flag=1;
char name[20];
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
scanf("%s",name);
if((fp=fopen("shuju.txt","r+"))==NULL)
{
printf("File open error!\n");
exit(0);
}
for(i=0;feof(fp)==0;i++)
{
fscanf(fp,"%s %s %s %s\n",a[i].name,a[i].area,a[i].tel,a[i].email);
if(strcmp(name,a[i].name)==0)
{ flag=0;
n=i;
}
}
if(flag==1)
{
printf(" <20><><EFBFBD>޴<EFBFBD><DEB4><EFBFBD>!\n");
fanhui();
}
printf(" <20><>ȷ<EFBFBD><C8B7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ\n");
printf(" <20><><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\t\t\n");
printf(" %s\t\t%s\t\t%s\t\t%s\t\t\n",a[n].name,a[n].area,a[n].tel,a[n].email);
printf(" ȷ<><C8B7><EFBFBD>޸İ<DEB8> 1\tȡ<EFBFBD><EFBFBD><EFBFBD>޸İ<EFBFBD> 2<><32>");
scanf("%d",&t);
if(t==1)
xiugai(n);
if(t==2)
fanhui();
if(fclose(fp))
{
printf("<EFBFBD>ر<EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
exit(0);
}
if((fp=fopen("shuju.txt","w"))==NULL)
{
printf("File open error!\n");
exit(0);
}
for(n=0;n<i;n++)
fprintf(fp,"%s %s %s %s\n",a[n].name,a[n].area,a[n].tel,a[n].email);
if(fclose(fp))
{
printf("<EFBFBD>ر<EFBFBD>ʧ<EFBFBD><EFBFBD>\n");
exit(0);
}
system("pause");
}
void xiugai(int n)
{
int k,z;
printf(" ************************************\n");
printf(" 1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf(" 2<><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
printf(" 3<><33><EFBFBD><EFBFBD><E7BBB0><EFBFBD><EFBFBD>\n");
printf(" 4<><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ\n");
printf(" ************************************\n");
printf(" <20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ĵ<DEB8><C4B5><EFBFBD>Ϣ:");
scanf("%d",&k);
switch(k)
{
case 1:printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>"); scanf("%s",a[n].name); break;
case 2:printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>"); scanf("%s",a[n].area); break;
case 3:printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>"); scanf("%s",a[n].tel); break;
case 4:printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ĺ<DEB8><C4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>"); scanf("%s",a[n].email); break;
}
printf(" <20>޸ijɹ<C4B3>\n");
printf(" <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>\n");
}