|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <windows.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
int i=1;
|
|
|
|
|
struct staffsinfor
|
|
|
|
|
{
|
|
|
|
|
char staffnums[100];
|
|
|
|
|
char name[100];
|
|
|
|
|
char sex[100];
|
|
|
|
|
char studyF[100];
|
|
|
|
|
char homedress[100];
|
|
|
|
|
char money[100];
|
|
|
|
|
char phonenum[100];
|
|
|
|
|
};
|
|
|
|
|
void input(struct staffsinfor staffs[]){
|
|
|
|
|
int j;
|
|
|
|
|
two :system("cls");
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<EFBFBD>룡\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%d(<28><><EFBFBD><EFBFBD>50<35><30>)\n\n\n",i);
|
|
|
|
|
if(i==50)
|
|
|
|
|
{
|
|
|
|
|
MessageBox(NULL,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
gets(staffs[i].name);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ְ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
gets(staffs[i].staffnums);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>\n");
|
|
|
|
|
gets(staffs[i].sex);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD>\n");
|
|
|
|
|
gets(staffs[i].studyF);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>빤<EFBFBD><EFBFBD>\n");
|
|
|
|
|
gets(staffs[i].money);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>סַ\n");
|
|
|
|
|
gets(staffs[i].homedress);
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>绰\n");
|
|
|
|
|
gets(staffs[i].phonenum);
|
|
|
|
|
j=MessageBox(NULL,"<EFBFBD>Ƿ<EFBFBD>ȷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(j==6)
|
|
|
|
|
{
|
|
|
|
|
MessageBox(NULL,"¼<EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
i++;
|
|
|
|
|
j=MessageBox(NULL,"<EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>룿","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(j==6)
|
|
|
|
|
goto two;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox(NULL,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
goto two;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void look(struct staffsinfor staffs[]){
|
|
|
|
|
int j=i;j--;char o;
|
|
|
|
|
three :
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\n");
|
|
|
|
|
if(j==0)
|
|
|
|
|
{
|
|
|
|
|
MessageBox(NULL,"δ<EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
printf("\t\t\t\tA.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\tB.<2E><><EFBFBD><EFBFBD>");
|
|
|
|
|
o=getch();
|
|
|
|
|
if(o=='A')
|
|
|
|
|
{
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].name);
|
|
|
|
|
printf("\n\t\t\tְ<EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].staffnums);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].sex);
|
|
|
|
|
printf("\n\t\t\tѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].studyF);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].money);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD>ͥסַ<EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].homedress);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>绰<EFBFBD><EFBFBD><EFBFBD>룺\n\t\t\t\t\t\t\t%s",staffs[j].phonenum);
|
|
|
|
|
printf("\n\n\n\t\t\t\t\t\t<EFBFBD><EFBFBD>A<EFBFBD><EFBFBD>D<EFBFBD>л<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t<EFBFBD><EFBFBD>BackSpace<EFBFBD>˻ز˵<EFBFBD>");
|
|
|
|
|
o=getch();
|
|
|
|
|
if(o=='A')
|
|
|
|
|
{
|
|
|
|
|
if(j==1)
|
|
|
|
|
{system("cls");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD>ǵ<EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
system("pause");
|
|
|
|
|
goto three;
|
|
|
|
|
}
|
|
|
|
|
j--;
|
|
|
|
|
goto three;
|
|
|
|
|
}
|
|
|
|
|
if(o=='D')
|
|
|
|
|
{
|
|
|
|
|
if(j==i&&j!=i)
|
|
|
|
|
{system("cls");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
system("pause");
|
|
|
|
|
goto three;
|
|
|
|
|
}
|
|
|
|
|
j++;
|
|
|
|
|
goto three;
|
|
|
|
|
}
|
|
|
|
|
if(o==8)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if(o=='B')
|
|
|
|
|
{ system("cls");
|
|
|
|
|
printf("ְ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ա<EFBFBD> ѧ<><D1A7> <20><><EFBFBD><EFBFBD> <20>绰<EFBFBD><E7BBB0><EFBFBD><EFBFBD> <20><>ͥסַ\n");
|
|
|
|
|
int p;
|
|
|
|
|
for(p=1;p<i;p++)
|
|
|
|
|
{
|
|
|
|
|
printf("%s\t%s\t%s\t%s\t%s\t%s\t%s\n",staffs[p].staffnums,staffs[p].name,staffs[p].sex,staffs[p].studyF,staffs[p].phonenum,staffs[p].homedress);
|
|
|
|
|
system("pause");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void cha(struct staffsinfor staffs[]){
|
|
|
|
|
char a;char name[100];int o;
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>\t\t\t\t\n");
|
|
|
|
|
printf("**********************************************************************\n\n\n");
|
|
|
|
|
printf("\t\t\t\tA.<2E><>ְ<EFBFBD><D6B0><EFBFBD>ò<EFBFBD>ѯ\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\tB.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\t\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\t\t<EFBFBD><EFBFBD>BackSpace<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ\n\n\n\n\n");
|
|
|
|
|
printf("**********************************************************************\n");
|
|
|
|
|
a=getch();
|
|
|
|
|
if(a=='A')
|
|
|
|
|
{
|
|
|
|
|
four :
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ¼<EFBFBD>룡\t\t\t\n\n\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ְԱְ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|
|
|
|
gets(name);
|
|
|
|
|
for(o=0;o<i;o++)
|
|
|
|
|
{
|
|
|
|
|
if(strcmp(name,staffs[o].name)==0)
|
|
|
|
|
{
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].name);
|
|
|
|
|
printf("\n\t\t\tְ<EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].staffnums);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].sex);
|
|
|
|
|
printf("\n\t\t\tѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].studyF);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].money);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD>ͥסַ<EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[o].homedress);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>绰<EFBFBD><EFBFBD><EFBFBD>룺\n\t\t\t\t\t\t\t%s",staffs[o].phonenum);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
system("pause");
|
|
|
|
|
a=MessageBox(NULL,"<EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(a==6)
|
|
|
|
|
{
|
|
|
|
|
six :
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\n\t\t\t\t<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>Ҫ<EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD>Ϣ");
|
|
|
|
|
printf("\t\1.<2E><><EFBFBD><EFBFBD>\t2.ְ<><D6B0><EFBFBD><EFBFBD>\t3.<2E>Ա<EFBFBD>\t4.<2E><><EFBFBD><EFBFBD>\t5.<2E><>ͥסַ\t6.ѧ<><D1A7>\t7.<2E>绰<EFBFBD><E7BBB0><EFBFBD><EFBFBD>");
|
|
|
|
|
a=getch();
|
|
|
|
|
if(a==1)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==2)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==3)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==4)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==5)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==6)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
if(a==7)
|
|
|
|
|
{
|
|
|
|
|
printf("ԭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%s\n",staffs[o].name);
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
char ms[100];
|
|
|
|
|
gets(ms);
|
|
|
|
|
strcpy(staffs[o].name,ms);
|
|
|
|
|
int q; q=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
MessageBox(NULL,"<EFBFBD>ijɹ<EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_OK);
|
|
|
|
|
else
|
|
|
|
|
goto six;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
goto four;
|
|
|
|
|
}
|
|
|
|
|
if(a=='B');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void shanchu(struct staffsinfor staffs[]){
|
|
|
|
|
seven :
|
|
|
|
|
system("cls");
|
|
|
|
|
int j;
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD>ڽ<EFBFBD><EFBFBD>е<EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\n");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ݣ<EFBFBD><DDA3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>š<EFBFBD>
|
|
|
|
|
printf("<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>Ҫɾ<EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
scanf("%d",&j);
|
|
|
|
|
int o;
|
|
|
|
|
for(o=0;o<i;o++)
|
|
|
|
|
{
|
|
|
|
|
if(o==j)
|
|
|
|
|
{
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD>Ϣ\n");
|
|
|
|
|
printf("\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].name);
|
|
|
|
|
printf("\n\t\t\tְ<EFBFBD><EFBFBD><EFBFBD>ţ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].staffnums);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].sex);
|
|
|
|
|
printf("\n\t\t\tѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].studyF);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].money);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD><EFBFBD>ͥסַ<EFBFBD><EFBFBD>\n\t\t\t\t\t\t\t%s",staffs[j].homedress);
|
|
|
|
|
printf("\n\t\t\t<EFBFBD>绰<EFBFBD><EFBFBD><EFBFBD>룺\n\t\t\t\t\t\t\t%s",staffs[j].phonenum);
|
|
|
|
|
int q;
|
|
|
|
|
q=MessageBox(NULL,"ȷ<EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
|
|
|
|
|
if(q==6)
|
|
|
|
|
{
|
|
|
|
|
int p;
|
|
|
|
|
for(p=j;p<i;p++)
|
|
|
|
|
{
|
|
|
|
|
/* staffs[p].name=staffs[p+1].name;
|
|
|
|
|
staffs[p].staffnums=staffs[p+1].staffnums;
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/}
|
|
|
|
|
i--;
|
|
|
|
|
goto seven;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
int main()
|
|
|
|
|
{
|
|
|
|
|
char a;struct staffsinfor staffs[50];
|
|
|
|
|
/*ְ<><D6B0><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD><EFBFBD>2<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>ʡ<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><EFBFBD>ṩ<EFBFBD><EFBFBD><EFBFBD>¹<EFBFBD><EFBFBD>ܣ<EFBFBD>
|
|
|
|
|
1<EFBFBD><EFBFBD>ϵͳ<EFBFBD>Բ˵<EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
2<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>
|
|
|
|
|
3<EFBFBD><EFBFBD>ְ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
4<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><EFBFBD>
|
|
|
|
|
5<EFBFBD><EFBFBD>ְ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĺ<EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>)*/
|
|
|
|
|
|
|
|
|
|
one :
|
|
|
|
|
system("cls");
|
|
|
|
|
printf("\t\t\t\t<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD>\t\t\t\t\n");
|
|
|
|
|
printf("**********************************************************************\n\n\n");
|
|
|
|
|
printf("\t\t\t\tA.¼<><C2BC><EFBFBD><EFBFBD>Ϣ\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\tB.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\tC.<2E><>ѯ<EFBFBD><D1AF>Ϣ\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\tD.ɾ<><C9BE><EFBFBD><EFBFBD>Ϣ\t\t\t\t\n\n");
|
|
|
|
|
printf("\t\t\t\t\t<EFBFBD><EFBFBD>BackSpace<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һҳ\n\n\n");
|
|
|
|
|
printf("\t\t\t\t\tBy--<2D><EFBFBD><DEB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n");
|
|
|
|
|
printf("**********************************************************************\n");
|
|
|
|
|
a=getch();
|
|
|
|
|
if(a=='A')
|
|
|
|
|
{
|
|
|
|
|
input(staffs);
|
|
|
|
|
goto one;
|
|
|
|
|
}
|
|
|
|
|
else if(a=='B')
|
|
|
|
|
{
|
|
|
|
|
look(staffs);
|
|
|
|
|
goto one;
|
|
|
|
|
}
|
|
|
|
|
else if(a=='C')
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
goto one;
|
|
|
|
|
}
|
|
|
|
|
else if(a=='D')
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
|
|
|
|
|
system("pause");
|
|
|
|
|
goto one;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|