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.

203 lines
5.9 KiB

6 years ago
#include <stdio.h>
#include <stdlib.h>
#include <windows.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<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;
}
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;
}
}
a=MessageBox(NULL,"<EFBFBD>Ƿ<EFBFBD><EFBFBD>޸<EFBFBD><EFBFBD><EFBFBD>Ϣ","ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
if(a==6)
{
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>");
gets(staffs[o].name);
a=MessageBox(NULL,"ȷ<EFBFBD>ϸ<EFBFBD><EFBFBD>ģ<EFBFBD>""ϵͳ<EFBFBD><EFBFBD>ʾ",MB_YESNO);
if(a==6)
MessageBox(NULL,"","",MB_OK);
}
}
}
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><EFB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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\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')
{
a=getch();
if(a==8)
goto one;
}
else
{
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!");
system("pause");
goto one;
}
return 0;
}