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.
|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
#include<string.h>
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
char name[20];
|
|
|
|
|
char phonenum[20];
|
|
|
|
|
char kind[10];
|
|
|
|
|
char email[30];
|
|
|
|
|
} linkman;
|
|
|
|
|
int main_menu()
|
|
|
|
|
{
|
|
|
|
|
char c;
|
|
|
|
|
do{
|
|
|
|
|
|
|
|
|
|
printf("\t\t <20>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T\n");
|
|
|
|
|
printf("\t\t <20>ֻ<EFBFBD>ͨѶ¼С<C2BC><D0A1><EFBFBD><EFBFBD> \n");
|
|
|
|
|
printf("\t\t <20>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T<EFBFBD>T\n");
|
|
|
|
|
printf("\t\t <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t <20><> 1. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5> 2. ȫ<><C8AB><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> 3. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5> 4. <20><EFBFBD><DEB8><EFBFBD>ϵ<EFBFBD><CFB5> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> 5. ɾ<><C9BE><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5> 6. <20><><EFBFBD><EFBFBD> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> <20><>\n");
|
|
|
|
|
printf("\t\t <20><> 0. <20>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD> <20><>\n");
|
|
|
|
|
printf("\t\t <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
printf("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>(0-6):");
|
|
|
|
|
c=getchar();
|
|
|
|
|
}while(c<'0'||c>'6');
|
|
|
|
|
return (c-'0');
|
|
|
|
|
}
|
|
|
|
|
main()
|
|
|
|
|
{
|
|
|
|
|
for(;;)
|
|
|
|
|
{
|
|
|
|
|
switch(main_menu())
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
printf("\t\t --------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>--------\n");
|
|
|
|
|
add();
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
printf("\t\t --------ȫ<><C8AB><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>--------\n");
|
|
|
|
|
view();
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
printf("\t\t --------<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>--------\n");
|
|
|
|
|
search();
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
printf("\t\t --------<2D><EFBFBD><DEB8><EFBFBD>ϵ<EFBFBD><CFB5>--------\n");
|
|
|
|
|
amend();
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
printf("\t\t -----------<2D><><EFBFBD><EFBFBD>-----------\n");
|
|
|
|
|
delete();
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
printf("\t\t --------ȫ<><C8AB><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>--------\n");
|
|
|
|
|
dial();
|
|
|
|
|
break;
|
|
|
|
|
case 0;
|
|
|
|
|
printf("<EFBFBD><EFBFBD>лʹ<EFBFBD>ã<EFBFBD><EFBFBD>ټ<EFBFBD>\n")<EFBFBD><EFBFBD>
|
|
|
|
|
system("pause");
|
|
|
|
|
exit(0);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|