main()
{
FILE *fp1,*fp2;
int c;
system("cls");
system("color 2f");
system("cls");
struct student *head=NULL;
if ((fp1=fopen("contact.txt","r"))==NULL)
{
fp2=fopen("contact.txt","w");
fclose(fp2);
}
head=load();
while(1)
{
face();
printf("输入选项的号码:");
scanf("%d",&c);
getchar();
switch(c)
{
case 1:head=append(head);break;
case 2:search(head);break;
case 3:head=del(head);break;
case 4:save(head);break;
case 5:exit(0);break;
default :printf("Enter error!!\n");
}
printf("按ENTER返回操作菜单\n");
getchar();
system("CLS");
}
}