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.

349 lines
8.1 KiB

6 years ago
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<windows.h>
FILE *fp;//<2F>ļ<EFBFBD>ָ<EFBFBD><D6B8>
int i_entry=0;//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͳ<EFBFBD><CDB3>
#define MIN_C 100//ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD>ݶ<EFBFBD>Ӧ<EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ռ<EFBFBD>ݵĴ<DDB5>С
#define MAX_G 1000//ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>С
struct student {
char stuid[MIN_C];//ѧ<><D1A7>ѧ<EFBFBD><D1A7>
char name[MIN_C];//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char age[3];//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char gender[MIN_C];//ѧ<><D1A7><EFBFBD>Ա<EFBFBD>
char birth[MIN_C];//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char add[MIN_C];//ѧ<><D1A7><EFBFBD><EFBFBD>ַ
char tle[MIN_C];//ѧ<><D1A7><EFBFBD>
char email[MIN_C];//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}DATA[MAX_G];
struct student temp[MAX_G];//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD><EFBFBD><EFBFBD>
struct student are;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void init();//<2F>ļ<EFBFBD><C4BC>ij<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void GREEN();//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8>ɫΪ<C9AB><CEAA>ɫ
void RED();//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ɫΪ<C9AB><CEAA>ɫ
void LIGHT();//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ɫΪǿ<CEAA><C7BF>
void deal();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//dell()<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><E5BAAF>
void notice();//<2F><>ʾ<EFBFBD><CABE>Ϣ
void case1();//ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ¼<CFA2><C2BC>
void entry();
void file_save();
void case2();//ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
void i_printf();
void case3();//<2F>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void stuid_sort(int I,int L);
void name_sort(int I,int L);
void case4();//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ
void stuid_find();
void name_find();
void case5();//ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD>޸<EFBFBD>
void Change(int x);
int main()
{ GREEN();
printf(">********* <20><> ><<3C><>ӭʹ<D3AD><CAB9>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ *********<\n");
printf(">*********<2A><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>ϵͳŶ\n");
int u=3;
char s[15];
while(u--)
{if(u==2)
printf("<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD> ") ;
else
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>");
scanf("%s",s);
if(strcmp("asdfghjkl",s)==0)
{
break;
}
else
continue;
}
if(u==0)
{ GREEN();
printf(" <20><>******* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>sorry\n");
return 0;
}
else
{
if((fp=fopen("student_data.txt","r+"))==NULL)
{
printf("FILE\n");
fp=fopen("student_data.txt","w+");
}
init();//<2F>ļ<EFBFBD><C4BC>ij<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
LIGHT();
printf("<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d\n",i_entry);
GREEN();//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8>ɫΪ<C9AB><CEAA>ɫ
printf(">********** <20><>ӭ<EFBFBD><D3AD>ʹ<EFBFBD><CAB9>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3>1.1<EFBFBD><EFBFBD> **********<\n");
printf(">********** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>ֽ<EFBFBD><D6BD>в<EFBFBD><D0B2><EFBFBD><EFBFBD><EFBFBD> **********<\n");
printf(">**********<2A><>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD>ȷ<EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>򣬷<EFBFBD><F2A3ACB7><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܱ<EFBFBD><DCB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>档**********<\n");
deal();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
fclose(fp);//<2F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ر<EFBFBD>
return 0;
}}
void init() //<2F>ļ<EFBFBD><C4BC>ij<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>ȡ
{
while (!feof(fp))
{
fscanf(fp, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", DATA[i_entry].stuid, DATA[i_entry].name, DATA[i_entry].age,
DATA[i_entry].gender, DATA[i_entry].birth, DATA[i_entry].add, DATA[i_entry].tle, DATA[i_entry].email);
i_entry++;
}
}
void RED() {//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ɫΪ<C9AB><CEAA>ɫ
HANDLE kai_1 = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(kai_1, FOREGROUND_INTENSITY | FOREGROUND_RED); // Ϊ<><CEAA>ɫ
}
void GREEN() {//<2F><><EFBFBD><EFBFBD>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0>ɫΪ<C9AB><CEAA>ɫ
HANDLE kai_2 = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(kai_2, FOREGROUND_INTENSITY | FOREGROUND_GREEN);// Ϊ<><CEAA>ɫ
}
void LIGHT(){
HANDLE kai_2 = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(kai_2, FOREGROUND_INTENSITY | FOREGROUND_INTENSITY);// Ϊǿ<CEAA><C7BF>
}
void deal() {//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int k,flag,p;
p=1;
notice();
flag=1;
while(flag) {
if(p>1)
{
system("cls");
notice();
}
scanf("%d",&k);
system("cls");
switch(k) {
case 0: {
puts("<EFBFBD><EFBFBD>ܰ<EFBFBD><EFBFBD><EFBFBD>ѣ<EFBFBD>");
puts("\t ^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD><EFBFBD>^^лл<D0BB><D0BB><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>,<2C><>ӭ<EFBFBD>ٴ<EFBFBD>ʹ<EFBFBD><CAB9>!^^<5E><><EFBFBD><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^ ");
puts("\t*******ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD>ѱ<EFBFBD><D1B1><EFBFBD><EFBFBD>ڵ<EFBFBD>ǰĿ¼<C4BF>ļ<EFBFBD> student_data.txt <20><>********");
flag=0;
LIGHT();
break;
}
case 1: {
case1();
break;
}
case 2: {
case2();
break;
}
case 3: {
case3();
break;
}
case 4: {
case4();
break;
}
case 5: {
case5();
break;
}
default: {
RED();
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD>֣<EFBFBD>\n");
GREEN();
break;
}
}
p=1103;
puts("\n");
}
}
void notice() {//<2F><>ʾ<EFBFBD><CABE>Ϣ
RED();
puts("\t\t\t1.ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ¼<CFA2><C2BC>");
puts("\t\t\t2.ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>");
puts("\t\t\t3.<2E>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
puts("\t\t\t4.ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ");
puts("\t\t\t5.ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD>޸<EFBFBD>");
printf("\t\t\t0. <20><> <20><> ϵ ͳ\n");
GREEN();
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
//11111111111
void case1() {//ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ¼<CFA2><C2BC>
int flag;
flag=1;
while(flag) {
entry();
LIGHT();
printf("<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD>1,<2C><><EFBFBD><EFBFBD>¼<EFBFBD>룻0,¼<><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<2E>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>");
GREEN();
scanf("%d",&flag);
i_entry++;
}
}
void entry() {//ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>¼<EFBFBD><C2BC>
int flag,i;
system("cls");
init();
flag=1;
puts("***************>>>>>><3E><>ǰģʽΪѧ<CEAA><D1A7><EFBFBD><EFBFBD>Ϣ¼<CFA2><C2BC>״̬<<<<<<*************");
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD>");
flag=1;//<2F><>ʶ<EFBFBD><CAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>жϸ<D0B6><CFB8><EFBFBD>Ϣ<EFBFBD>Ƿ<EFBFBD><C7B7>Ѵ<EFBFBD><D1B4><EFBFBD>
scanf("%s",&DATA[i_entry].stuid);
for(i=0; i<i_entry; i++) //<2F>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD><EFBFBD>󣬼<EFBFBD><F3A3ACBC>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>Ѵ<EFBFBD><D1B4>ڸ<EFBFBD><DAB8><EFBFBD>Ϣ
if(strcmp(DATA[i].stuid,DATA[i_entry].stuid)==0) {
flag=0;
break;
}
if(flag==1) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].name);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].age);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].gender);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>/<2F><><EFBFBD><EFBFBD>)<29><>");
scanf("%s",DATA[i_entry].birth);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].add);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].tle);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD><EFBFBD>");
scanf("%s",DATA[i_entry].email);
file_save();
}
if(flag==0)
puts("<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>");
}
void file_save() {//<2F><>Ϣ<EFBFBD><CFA2><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>ʽ¼<CABD><EFBFBD><EBBAAF>
fprintf(fp, "%s\t\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", DATA[i_entry].stuid, DATA[i_entry].name,DATA[i_entry].age,
DATA[i_entry].gender, DATA[i_entry].birth, DATA[i_entry].add, DATA[i_entry].tle, DATA[i_entry].email);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD>");
}
//2222222222222
void case2() {//ѧ<><D1A7><EFBFBD>ۺ<EFBFBD><DBBA><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
puts("***************>>>>>><3E><>ǰģʽΪѧ<CEAA><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>״̬<<<<<<*************");
i_printf();
}
void i_printf() {//ѧ<><D1A7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int i,k=1;
//printf("ѧ<><D1A7>\t<><74><EFBFBD><EFBFBD>\t<><74><EFBFBD><EFBFBD>\t<>Ա<EFBFBD>\t<><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><>/<2F><>\t<><74>ϵ<EFBFBD><CFB5>ַ\t<><74>ϵ<EFBFBD>绰\t<><74>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD>");
printf("\n");
if(k)
{
for(i=0; i<i_entry; i++)
{
printf("ѧ<EFBFBD>ţ<EFBFBD>%-18s\n",&DATA[i].stuid);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%-16s\n",DATA[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-4s\n",&DATA[i].age);
printf("<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>%-6s\n",DATA[i].gender);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>գ<EFBFBD>%-12s\n",&DATA[i].birth);
printf("<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>%-16s\n",DATA[i].add);
printf("<EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD>%-16s\n",DATA[i].tle);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-15s\n\n",DATA[i].email);
}
LIGHT();
printf("<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><EFBFBD>밴0<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
scanf("%d",&k);
}
}
//44444444444
void case4() {//ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2>ѯ
int v;
LIGHT();
printf("<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD>1,<2C><><EFBFBD><EFBFBD>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD><D1AF>2,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ.<2E><><EFBFBD><EFBFBD><EFBFBD>");
GREEN();
scanf("%d",&v);
if(v==1) {
stuid_find();
}
if(v==2) {
name_find();
}
}
void stuid_find() {//ѧ<>Ų<EFBFBD><C5B2><EFBFBD> <20><><EFBFBD><EFBFBD>strcmp()<29><><EFBFBD><EFBFBD>
int i,flag=0,k;
char wqs[MIN_C];
k=1;
system("cls");
puts("***************>>>>>><3E><>ǰģʽ<C4A3><CABD>ѧ<EFBFBD>Ų<EFBFBD>ѯ<EFBFBD><D1AF>Ϣ״̬<<<<<<*************");
while(k) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>ѧ<EFBFBD>ţ<EFBFBD> ");
scanf("%s",wqs);
for(i=0; i<i_entry; i++)
if(strcmp(DATA[i].stuid,wqs)==0) {
printf("ѧ<EFBFBD>ţ<EFBFBD>%-18s\n",&DATA[i].stuid);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%-16s\n",DATA[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-4s\n",&DATA[i].age);
printf("<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>%-6s\n",DATA[i].gender);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>գ<EFBFBD>%-12s\n",&DATA[i].birth);
printf("<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>%-16s\n",DATA[i].add);
printf("<EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD>%-16s\n",DATA[i].tle);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-15s\n",DATA[i].email);
flag=1;
}
if(flag==0)
puts("δ<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>.");
LIGHT();
puts("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
printf("\t\t1.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ\n\t\t0.<2E>˳<EFBFBD><CBB3><EFBFBD>ѯ\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
GREEN();
scanf("%d",&k);
}
}
void name_find() {//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ú<EFBFBD><C3BA><EFBFBD>strcmp()==0 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int i,flag=0,k;
char wqs[MIN_C];
k=1;
system("cls");
puts("***************>>>>>><3E><>ǰģʽ<C4A3><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>Ϣ״̬<<<<<<*************");
while(k) {
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ");
scanf("%s",wqs);
for(i=0; i<i_entry; i++)
if(strcmp(DATA[i].name,wqs)==0) {
printf("ѧ<EFBFBD>ţ<EFBFBD>%-18s\n",&DATA[i].stuid);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%-16s\n",DATA[i].name);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-4s\n",&DATA[i].age);
printf("<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>%-6s\n",DATA[i].gender);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>գ<EFBFBD>%-12s\n",&DATA[i].birth);
printf("<EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD>%-16s\n",DATA[i].add);
printf("<EFBFBD><EFBFBD>ϵ<EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD>%-16s\n",DATA[i].tle);
printf("<EFBFBD><EFBFBD><EFBFBD>䣺%-15s\n",DATA[i].email);
flag=1;
}
if(flag==0)
puts("δ<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>.");
LIGHT();
puts("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
printf("\t\t1.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ\n\t\t0.<2E>˳<EFBFBD><CBB3><EFBFBD>ѯ\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
GREEN();
scanf("%d",&k);
}
}