|
|
|
|
#include<stdio.h>
|
|
|
|
|
#include<stdlib.h>
|
|
|
|
|
#include<string.h>
|
|
|
|
|
#define LEN 20 /* ѧ<>ź<EFBFBD><C5BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD> */
|
|
|
|
|
#define N 1000 /* <20><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|
|
|
|
struct record /*<2A>ṹ<EFBFBD><E1B9B9>*/
|
|
|
|
|
{
|
|
|
|
|
char id[LEN+1]; /* ѧ<><D1A7> */
|
|
|
|
|
char name[LEN+1]; /* <20><><EFBFBD><EFBFBD> */
|
|
|
|
|
int age; /* <20><><EFBFBD><EFBFBD> */
|
|
|
|
|
char sex[3]; /* <20>Ա<EFBFBD> */
|
|
|
|
|
char birth[LEN+1]; /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
char add[30]; /* <20><>ͥ<EFBFBD><CDA5>ַ */
|
|
|
|
|
char tel[LEN+1]; /* <20>绰<EFBFBD><E7BBB0><EFBFBD><EFBFBD> */
|
|
|
|
|
char email[30]; /* <20><><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD>ַ */
|
|
|
|
|
}stu[N];
|
|
|
|
|
int n,m; /* <20><><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD> nΪ<6E><CEAA>ǰѧ<C7B0><D1A7><EFBFBD><EFBFBD> m<><6D>ʾÿ<CABE><C3BF><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD> */
|
|
|
|
|
void refresh();/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void seek();/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void modify();/* <20><EFBFBD><DEB8><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void add();/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void dele();/* ɾ<><C9BE><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void show();/* <20><>ʾ<EFBFBD><CABE>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
void save();/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD> */
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
while(1)
|
|
|
|
|
{
|
|
|
|
|
int num;
|
|
|
|
|
printf("\t\t\t\t ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n");
|
|
|
|
|
printf("\t\t һ<><D2BB><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˢ<EFBFBD><CBA2>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n");
|
|
|
|
|
printf("\t\t <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD><D8B1><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \n\n");
|
|
|
|
|
printf("\t\t\t ϵͳ<CFB5><CDB3><EFBFBD>ܲ˵<DCB2> \n");
|
|
|
|
|
printf("\t\t\t 1.ˢ<><CBA2>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 2.<2E><>ѯѧ<D1AF><D1A7><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 3.<2E><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 4.<2E><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 5.<2E><>ѧ<EFBFBD><D1A7>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 6.<2E><>ʾ<EFBFBD><CABE>ǰ<EFBFBD><C7B0>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 7.<2E><><EFBFBD>浱ǰѧ<C7B0><D1A7><EFBFBD><EFBFBD>Ϣ \n");
|
|
|
|
|
printf("\t\t\t 8.<2E>˳<EFBFBD>ϵͳ \n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
|
|
|
|
|
scanf("%d",&num);
|
|
|
|
|
switch(num)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
case 1:refresh();break;
|
|
|
|
|
case 2:seek();break;
|
|
|
|
|
/*case 3:modify();break;
|
|
|
|
|
case 4:add();break;
|
|
|
|
|
case 5:dele();break;
|
|
|
|
|
case 6:show();break;
|
|
|
|
|
case 7:save();break;*/
|
|
|
|
|
case 8:exit(0);
|
|
|
|
|
default:printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>1-8֮<38><D6AE>ѡ<EFBFBD><D1A1>\n");
|
|
|
|
|
}
|
|
|
|
|
system("pause");
|
|
|
|
|
system("cls");
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|