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.
pao2qcxlw/课程设计(学生学籍管理系统).c

549 lines
15 KiB

6 years ago
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<conio.h>
#define N 50000 /*<2A>洢50000<30><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
struct student
{
int age; /*<2A><><EFBFBD><EFBFBD>*/
char num[20]; /*ѧ<><D1A7>*/
char name[25]; /*<2A><><EFBFBD><EFBFBD>*/
char sex[10]; /*<2A>Ա<EFBFBD>*/
char addr[50]; /*<2A><><EFBFBD><EFBFBD>*/
char dept[50]; /*ϵ<><CFB5>*/
char major[30]; /*רҵ*/
char classs[30]; /*<2A>༶*/
char phone[20]; /*ѧ<><D1A7><EFBFBD>ı<EFBFBD>*/
}stu[N];
int flag; /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>Сflag<61>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>¼*/
void login() /*ע<><EFBFBD><E1BAAF>*/
{
void menu();
system("cls");
int load(); /*<2A><><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ļ<EFBFBD>*/
int n,i,m,w;
FILE *fp;
if((fp=fopen("D:\\file.txt","rb"))!=NULL) /*<2A><><EFBFBD>ǿ<EFBFBD><C7BF>ļ<EFBFBD>*/
n=load(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>*/
else
n=0;
struct student s; /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õĽṹ<C4BD><E1B9B9>*/
char password[20]; /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E6B4A2><EFBFBD><EFBFBD>*/
int d,q;
printf("\n\t<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>1.<2E><><EFBFBD><EFBFBD>Ա ");
scanf("%d",&d);
if(d==1) /*<2A>жϵ<D0B6>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>*/
{
printf("\n\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
getchar();
int j=0; /*jΪ<6A><CEAA><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>*/
while(1)
{
password[j]=getch(); /*<2A>õ<EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>*/
if(password[j]=='\r') /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǻس<C7BB><D8B3><EFBFBD><EFBFBD>˳<EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>óɹ<C3B3>*/
break;
printf("*"); /*<2A>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
j++;
}
password[j]='\0';
if(!strcmp(password,"1")) /*<2A>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ȷ*/
{
flag=1;
printf("\n\t<EFBFBD><EFBFBD>¼<EFBFBD>ɹ<EFBFBD>!\n");
printf("\tPress [ Enter ] key to continue<75><65>");
getchar();
system("cls");
menu();
}
if(!flag)
{
printf("\t\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!\n");
printf("What do you want to do next? 1.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼ 2.<2E><><EFBFBD>ز˵<D8B2> ");
scanf("%d",&q);
if(q==1) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼*/
{
system("cls");
login();
}
else if(q==2) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
{
system("cls");
menu();
}
}
}
}
void printf_one(int k) /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD>Ϣ*/
{
system("color f1");
printf("ѧ<EFBFBD>ţ<EFBFBD>%s\n",stu[k].num);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",stu[k].name);
printf("<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>%s\n",stu[k].sex);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%d\n",stu[k].age);
printf("<EFBFBD><EFBFBD><EFBFBD>᣺%s\n",stu[k].addr);
printf("ϵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",stu[k].dept);
printf("רҵ<EFBFBD><EFBFBD>%s\n",stu[k].major);
printf("<EFBFBD><EFBFBD><EFBFBD>%s\n",stu[k].classs);
printf("ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",stu[k].phone);
}
void printf_n(int n) /*<2A><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>й<EFBFBD><D0B9><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD>Ϣ*/
{
system("color f1");
int j,i=1; /*jΪѭ<CEAA><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>i<EFBFBD>DZ<EFBFBD>ʾ<EFBFBD><CABE>N<EFBFBD><4E>ѧ<EFBFBD><D1A7>*/
for(j=0;j<n;j++)
{
printf("<EFBFBD><EFBFBD>%d<><64>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>\n",i++);
printf_one(j); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("\n");
}
getchar();
}
int load() /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>ĺ<EFBFBD><C4BA><EFBFBD>*/
{
FILE *fp;
int i;
if((fp=fopen("D:\\file.txt","rb"))==NULL) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>rb<72><62>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
{
printf("\n<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n");
return 0;
}
for(i=0;!feof(fp);i++) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>β*/
fread(&stu[i],sizeof(struct student),1,fp); /*һ<><D2BB><EFBFBD>Զ<EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD>Թ<EFBFBD><D4B9><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
fclose(fp);
return(i-1); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
}
void input(int k) /*<2A><><EFBFBD><EFBFBD><EBB9A4>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
{
//getchar();
printf("ѧ<EFBFBD>ţ<EFBFBD>");
gets(stu[k].num);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].name);
printf("<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].sex);
printf("<EFBFBD><EFBFBD><EFBFBD>");
scanf("%d",&stu[k].age);
getchar();
printf("<EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].addr);
printf("ϵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].dept);
printf("רҵ<EFBFBD><EFBFBD>");
gets(stu[k].major);
printf("<EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].classs);
printf("ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
gets(stu[k].phone);
}
void save(int n) /*<2A><><EFBFBD><EFBFBD><E6B9A4>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD> n <20><>ʾҪ<CABE><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λѧ<CEBB><D1A7>*/
{
void exit();
FILE *fp;
int i; /*<2A><><EFBFBD><EFBFBD>¼ȡ<C2BC><C8A1><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>*/
if((fp=fopen("D:\\file.txt","wb"))==NULL) /*Wb,ֻ<>򿪻<EFBFBD><F2BFAABB><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>*/
{
printf("\n<EFBFBD>ļ<EFBFBD><EFBFBD>޷<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~\n");
exit();
}
for(i=0;i<n;i++) /*<2A><><EFBFBD>ΰѹ<CEB0><D1B9><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ¼<CFA2><C2BC><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>*/
if(stu[i].name[0]!='\0')
if(fwrite(&stu[i],sizeof(struct student),1,fp)!=1) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ľṹ<C4BD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>*/
printf("<EFBFBD>ļ<EFBFBD>д<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!\n");
fclose(fp);
}
void printf_back() /*<2A><><EFBFBD>ӹ<EFBFBD><D3B9><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϣ<D0B6><CFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>*/
{
int w,k=0; /*wΪѡ<CEAA><D1A1><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>kΪѭ<CEAA><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
void browse();
void menu();
printf("\n\n\t^_^.<2E><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>. ^_^\n\n");
do
{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô<EFBFBD><EFBFBD>~ \n\n\t1).<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ\t2).<2E><><EFBFBD><EFBFBD>: [ ]\b\b");
scanf("%d",&w);
if(w==1)
{
system("cls");
browse(); /*<2A><><EFBFBD><EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>*/
}
else if(w==2)
{
system("cls");
menu(); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
}
else
printf(" ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>~.~\n");
}while(k==0);
}
void insert() /*<2A><><EFBFBD>ӹ<EFBFBD><D3B9><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
{
int i,n,k,t; /*tΪ<74><CEAA><EFBFBD><EFBFBD>Ҫ¼<D2AA><C2BC><EFBFBD>Ĺ<EFBFBD><C4B9><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><6B>Ѿ<EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>kλѧ<CEBB><D1A7>*/
FILE *fp;
n=load(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>¼<EFBFBD><C2BC>*/
printf("׼<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>(1-%d)?:",N);
scanf("%d",&t);
k=n+t;
for(i=n;i<k;i++) /*i<t<><74><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %d <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ.\n",i-n+1); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD>λ*/
input(i);
}
save(k); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><6B><CEBB><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>*/
printf_back(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ú󷵻<C3BA><F3B7B5BB>ж<EFBFBD><D0B6><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>ʲô*/
}
void deleter() /*ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
{
void menu();
if(!flag) /*δ<><CEB4>¼*/
{
printf("\n\n\t<EFBFBD><EFBFBD><EFBFBD>ȵ<EFBFBD>¼~\n");
printf("\n\t<EFBFBD>밴 Enter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>~");
getchar();
getchar();
login();
}
else /*<2A>Ѿ<EFBFBD><D1BE><EFBFBD>¼*/
{
struct student s;
int i,n,k,w0,w1; /*KΪ<4B><CEAA>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>ť<EFBFBD><C5A5><EFBFBD><EFBFBD>w1Ϊdo-while<6C><65>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w0Ϊ<30>ж<EFBFBD><D0B6>Ƿ<EFBFBD>ɾ<EFBFBD><C9BE>*/
n=load(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>*/
do
{
k=-1;
//printf_n(n); /*ɾ<><C9BE>֮ǰ<D6AE><C7B0><EFBFBD><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ*/
do
{
printf("\n\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫɾ<EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>~\n Num:");
scanf("%s",s.name);
for(i=0;i<n;i++)
if(strcmp(s.name,stu[i].num)==0)
{
k=i;
s=stu[i];
}
if(k==-1)
{
int m;
printf("\n\nû<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~ 1.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD> [ ]\b\b");
scanf("%d",&m);
if(m==1)
deleter(); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٴ<EFBFBD>ѡ<EFBFBD><D1A1>*/
else
{
k=0;
menu();
}
}
}while(k==-1);
printf_one(k); /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("\n\tȷ<EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD>?\n\t1).<2E><> 2).<2E><><EFBFBD><EFBFBD> [ ]\b\b"); /*<2A>ٴ<EFBFBD>ѯ<EFBFBD><D1AF><EFBFBD>Ƿ<EFBFBD>ɾ<EFBFBD><C9BE>*/
scanf("%d",&w0);
if(w0==1)
{
stu[k].name[0]='\0'; /*<2A><>ʾ<EFBFBD><CABE><EFBFBD>ս<D5BD><E1B9B9><EFBFBD>ڸ<EFBFBD>Ԫ<EFBFBD><D4AA>*/
save(n); /*ɾ<><C9BE><EFBFBD><EFBFBD>ˢ<EFBFBD>±<EFBFBD><C2B1><EFBFBD>*/
}
else
break;
printf("\n\t^_^.<2E>ɹ<EFBFBD>ɾ<EFBFBD><C9BE>^_^.\n ");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1).<2E><><EFBFBD><EFBFBD> 2).<2E><><EFBFBD><EFBFBD> [ ]\b\b");
scanf("%d",&w1);
}while(w1==1);
system("cls");
menu(); /*<2A><><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD>w1!=1*/
}
}
void search() /*<2A><><EFBFBD>Һ<EFBFBD><D2BA><EFBFBD>*/
{
void menu();
int w0,k,i,n,w1,w2; /*w1Ϊ<31><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w0,w2kΪ<6B><CEAA><EFBFBD><EFBFBD>do-whileѭ<65><D1AD><EFBFBD><EFBFBD>i<EFBFBD><69>ʾ<EFBFBD><EFBFBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
struct student s;
FILE *fp;
if((fp=fopen("D:\\file.txt","rb"))!=NULL) /*<2A><><EFBFBD>ǿ<EFBFBD><C7BF>ļ<EFBFBD>*/
n=load();
do
{
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 1.<2E><><EFBFBD><EFBFBD> 2.ѧ<><D1A7> [ ]\b\b");
scanf("%d",&w1);
if(w1<1||w1>2)
{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!\n");
w2=1;
}
else
w2=0; /*<2A><><EFBFBD><EFBFBD>Ҫע<D2AA><EFBFBD><E2A3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E4BBB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
}while(w2==1);
if(w1==1) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
{
do
{
k=-1;
do
{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~\nName:");
scanf("%s",s.name);
for(i=0;i<n;i++)
if(strcmp(s.name,stu[i].name)==0) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϻ<EFBFBD><CFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>ж<EFBFBD><D0B6>Ϻ<EFBFBD><CFBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>*/
{
k=i;
s=stu[i];
}
if(k==-1) /*û<><C3BB><EFBFBD>ҵ<EFBFBD>*/
{
int o; /*oΪѡ<CEAA><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
printf("\n\nû<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ!\n!");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1.<2E><><EFBFBD><EFBFBD> 2.<2E><><EFBFBD>ز˵<D8B2> [ ]\b\b");
scanf("%d",&o);
if(o==1)
{
system("cls");
search(); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
}
else
{
system("cls");
menu();
}
}
}while(k==-1);
system("cls");
printf_one(k); /*<2A>ҵ<EFBFBD><D2B5>Ժ<EFBFBD><D4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1).<2E><><EFBFBD><EFBFBD> 2).<2E><><EFBFBD>ز˵<D8B2> [ ]\b\b");
scanf("%d",&w0);
}while(w0==1);
system("cls");
menu(); /*<2A><><EFBFBD>ٲ<EFBFBD><D9B2><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
}
else /*<2A><>ѧ<EFBFBD>Ų<EFBFBD><C5B2><EFBFBD>*/
{
do
{
k=-1;
do
{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>ҵĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><EFBFBD>~\nNum:");
scanf("%s",s.num);
for(i=0;i<n;i++)
if(strcmp(s.num,stu[i].num)==0) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϻ<EFBFBD><CFBA>ˣ<EFBFBD><CBA3>ҵ<EFBFBD>*/
{
k=i;
s=stu[i];
}
if(k==-1) /*û<><C3BB><EFBFBD>ҵ<EFBFBD>*/
{
int o;
printf("\n\nû<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ!\n!");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1.<2E><><EFBFBD><EFBFBD> 2.<2E><><EFBFBD>ز˵<D8B2> [ ]\b\b");
scanf("%d",&o);
if(o==1)
{
system("cls");
search(); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
}
else
{
system("cls");
menu();
}
}
}while(k==-1);
system("cls");
printf_one(k); /*<2A>ҵ<EFBFBD><D2B5>Ժ<EFBFBD><D4BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1).<2E><><EFBFBD><EFBFBD> 2).<2E><><EFBFBD>ز˵<D8B2> [ ]\b\b");
scanf("%d",&w0);
}while(w0==1);
system("cls");
menu(); /*<2A><><EFBFBD>ٲ<EFBFBD><D9B2>Ҿͷ<D2BE><CDB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
}
}
int modify_data(int i) /*<2A>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>w1Ϊ1ʱ<31>޸ijɹ<C4B3>*/
{
int c,w1; /*cΪѡ<CEAA><D1A1><EFBFBD>޸Ŀ<DEB8><C4BF>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD>w1<77><31><EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
void menu();
do
{
puts("\n<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ĵ<EFBFBD>ѡ<EFBFBD>\n\n1.ѧ<><D1A7> 2.<2E><><EFBFBD><EFBFBD> 3.<2E>Ա<EFBFBD> 5.<2E><><EFBFBD><EFBFBD> 6.<2E><><EFBFBD><EFBFBD> 7.ϵ<><CFB5> 8.רҵ 9.<2E>༶ 10.ѧ<><D1A7><EFBFBD>仯 11.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ 12.ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>?: [ ]\b\b\b");
scanf("%d",&c);
if(c>12||c<1)
{
puts("\nѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>!");
getchar();
}
}while(c>12||c<1);
do
{
switch(c)
{
case 1: printf("ѧ<EFBFBD><EFBFBD>:"); scanf("%s",stu[i].num); break;
case 2: printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"); scanf("%s",stu[i].name); break;
case 3: printf("<EFBFBD>Ա<EFBFBD>:"); scanf("%s",stu[i].sex); break;
case 5: printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"); scanf("%d",&stu[i].age);break;
case 6: printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"); scanf("%s",stu[i].addr);break;
case 7: printf("ϵ<EFBFBD><EFBFBD>:"); scanf("%s",stu[i].dept);break;
case 8: printf("רҵ:"); scanf("%s",stu[i].major);break;
case 9: printf("<EFBFBD>༶:"); scanf("%s",stu[i].classs);break;
case 10: printf("ѧ<EFBFBD><EFBFBD><EFBFBD>仯:"); scanf("%s",stu[i].phone);break;
case 11: input(i); break; /*<2A>޸<EFBFBD><DEB8><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ*/
case 12: system("cls"); menu(); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
}
puts("\nNow:\n");
printf_one(i); /*<2A><><EFBFBD><EFBFBD> <20>޸ĺ<DEB8><C4BA><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("\nȷ<EFBFBD><EFBFBD>?\n\n\t1).<2E><> 2).<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD> 3).<2E><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD><EFBFBD><EFBFBD> ");
scanf("%d",&w1);
}while(w1==2);
return(w1); /*<2A>޸ijɹ<C4B3><C9B9><EFBFBD>ѡ<EFBFBD><D1A1>1<EFBFBD>󷵻<EFBFBD>1*/
}
void modify() /*<2A>޸ĺ<DEB8><C4BA><EFBFBD>*/
{
void menu();
if(!flag) /*<2A><>ʾδ<CABE><CEB4>¼*/
{
printf("\n\\t<EFBFBD><EFBFBD><EFBFBD>ȵ<EFBFBD>¼~\n");
printf("\n\t<EFBFBD>밴 Enter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>~");
getchar();
getchar();
login();
}
else /*<2A><>ʾ<EFBFBD>ѵ<EFBFBD>¼*/
{
struct student s;
int i,n,k,w0=1,w1,w2=0; /*w1<77>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7>޸ijɹ<C4B3>k<EFBFBD><6B>w0Ϊѭ<CEAA><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
n=load();
do
{
k=-1;
do
{
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>޸ĵĹ<EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><EFBFBD>~\nNum:");
scanf("%s",s.num);
for(i=0;i<n;i++)
if(strcmp(s.num,stu[i].num)==0) /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һλ<D2BB><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ƥ<EFBFBD><C6A5>*/
{
k=i;
s=stu[i];
}
if(k==-1) /*û<><C3BB><EFBFBD>ҵ<EFBFBD>*/
{
int o;
printf("\nû<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲô~\n\t1.<2E><><EFBFBD><EFBFBD> 2.<2E><><EFBFBD>ز˵<D8B2> ");
scanf("%d",&o); /*<2A><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>*/
if(o==1)
{
system("cls");
modify(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>޸ģ<DEB8><C4A3><EFBFBD><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
}
else
{
system("cls");
menu();
}
}
}while(k==-1);
system("cls");
printf_one(k); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>ѧ<EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
w1=modify_data(k);
if(w1==1) /*<2A>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7>޸ijɹ<C4B3><C9B9>޸ģ<DEB8><C4A3><EFBFBD><EFBFBD>ɹ<EFBFBD><C9B9>򷵻<EFBFBD>1*/
{
printf("\n\t <20>޸ijɹ<C4B3>~ \n<EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?\n\t 1).<2E><> 2).<2E><><EFBFBD><EFBFBD><E6B7B5>\t");
scanf("%d",&w0);
w2=1;
}
else
{
w0=0;
if(w2==0)
stu[k]=s;
}
if((w0!=1)&&(w2==1)) /*<2A>޸ijɹ<C4B3><C9B9><EFBFBD><EFBFBD><EFBFBD>*/
save(n);
}while(w0==1); /*w0Ϊ1ʱ<31><CAB1><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>*/
system("cls");
menu(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>޸ķ<DEB8><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>*/
}
}
void browse() /*<2A><EFBFBD><E9BFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7>*/
{
system("color f3");
void menu(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>Ӻ<EFBFBD><D3BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>*/
int n; /*<2A><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>*/
n=load(); /*<2A><><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>,<2C><>n<EFBFBD><6E>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf_n(n); /*<2A><><EFBFBD><EFBFBD>n<EFBFBD><6E>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ*/
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>к<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d <20><>ѧ<EFBFBD>ӵļ<D3B5>¼~\n",n);
printf("\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>~~~");
getchar();
system("cls"); /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD>н<EFBFBD><D0BD><EFBFBD>*/
menu(); /*<2A><><EFBFBD>ز˵<D8B2>~*/
}
void exit() /*<2A>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD>~*/
{
exit(0);
}
void menu() /*^(*<2A><>(oo)<29><>)^<5E><><EFBFBD>˵<EFBFBD>~*/
{
system("color f2");
printf("\n\t\t <20><>ӭ<EFBFBD><D3AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ~\n");
printf("\n");
int n,w1; /*w1<77><31><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD>n<EFBFBD><6E><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>*/
do
{
puts("\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~~~<7E>˵<EFBFBD>~~~ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
puts("\t\t|| 1.<2E><>--¼ ||");
puts("\t\t|| 2.ע--<2D><> ||");
puts("\t\t|| <20><><EFBFBD><EFBFBD> 3.ɾ--<2D><> <20><> <20><> ||");
puts("\t\t|| 4.<2E><>--<2D><> ||");
puts("\t\t|| 5.<2E><>--<2D>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˣ<EFBFBD>1810<31>¿<EFBFBD><C2BF><EFBFBD><EFBFBD><EFBFBD> ||");
puts("\t\t|| 6.<2E><>--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڣ<EFBFBD>2019/1/11<31><31> ||");
puts("\t\t|| 7.<2E><>--<2D><> ||");
puts("\t\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1-7):");
scanf("%d",&n);
if(n<1||n>7) /*<2A>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7>ڲ˵<DAB2><CBB5><EFBFBD>~*/
{
system("cls");
printf("ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~.~ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>!\n");
w1=1;
}
else
w1=0;
}while(w1==1);
switch(n)
{
case 1: login(); break; /*<2A><>¼~*/
case 2: system("cls"); insert(); break; /*ע<><D7A2>~*/
case 3: system("cls"); deleter(); break; /*ɾ<><C9BE>~*/
case 4: system("cls"); search(); break; /*<2A><><EFBFBD><EFBFBD>~*/
case 5: system("cls"); modify(); break; /*<2A>޸<EFBFBD>~*/
case 6: system("cls"); browse(); break; /*<2A><><EFBFBD><EFBFBD>~*/
case 7: exit(); break; /*<2A>˳<EFBFBD>~*/
}
}
int main() /*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~*/
{
menu();
return 0;
}