diff --git a/课设/bin/Debug/课设.exe b/课设/bin/Debug/课设.exe new file mode 100644 index 0000000..0c72a35 Binary files /dev/null and b/课设/bin/Debug/课设.exe differ diff --git a/课设/main.c b/课设/main.c new file mode 100644 index 0000000..0049fcd --- /dev/null +++ b/课设/main.c @@ -0,0 +1,353 @@ +#include +#include +#include +#include +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ÄúÔÚ½øÐеÄÊÇÐÅϢ¼È룡\t\t\tÒÑÓÐÈËÊý%d(×î¶à50ÈË)\n\n\n",i); + if(i==50) + { + MessageBox(NULL,"ÈËÊýÒÑÂú£¡","ϵͳÌáʾ",MB_OK); + return 0; + } + printf("\t\t\tÇëÊäÈëÐÕÃû\n"); + gets(staffs[i].name); + printf("\t\t\tÇëÊäÈëÖ°¹¤ºÅ\n"); + gets(staffs[i].staffnums); + printf("\t\t\tÇëÊäÈëÐÔ±ð\n"); + gets(staffs[i].sex); + printf("\t\t\tÇëÊäÈëѧÀú\n"); + gets(staffs[i].studyF); + printf("\t\t\tÇ×ÊäÈ빤×Ê\n"); + gets(staffs[i].money); + printf("\t\t\tÇëÊäÈëסַ\n"); + gets(staffs[i].homedress); + printf("\t\t\tÇëÊäÈëµç»°\n"); + gets(staffs[i].phonenum); + j=MessageBox(NULL,"ÊÇ·ñÈ·¶¨£¿","ϵͳÌáʾ",MB_YESNO); + if(j==6) + { + MessageBox(NULL,"¼Èë³É¹¦","ϵͳÌáʾ",MB_OK); + i++; + j=MessageBox(NULL,"ÊÇ·ñ¼ÌÐø¼È룿","ϵͳÌáʾ",MB_YESNO); + if(j==6) + goto two; + + + + } + else + { + MessageBox(NULL,"ÇëÖØмÈë","ϵͳÌáʾ",MB_OK); + goto two; + } +} +void look(struct staffsinfor staffs[]){ + int j=i;j--;char o; + three : + system("cls"); + printf("\t\t\t\tÄúÔÚ½øÐеÄÊÇä¯ÀÀÃûµ¥£¡\n\n\n"); + if(j==0) + { + MessageBox(NULL,"δÕÒµ½Ãûµ¥ÐÅÏ¢£¡","ϵͳÌáʾ",MB_OK); + return 0; + } + printf("\t\t\t\tA.µ¥¸öä¯ÀÀ\t\tB.×ÜÀÀ"); + o=getch(); + if(o=='A') + { + system("cls"); + printf("\t\t\tÐÕÃû£º\n\t\t\t\t\t\t\t%s",staffs[j].name); + printf("\n\t\t\tÖ°¹¤ºÅ£º\n\t\t\t\t\t\t\t%s",staffs[j].staffnums); + printf("\n\t\t\tÐÔ±ð£º\n\t\t\t\t\t\t\t%s",staffs[j].sex); + printf("\n\t\t\tѧÀú£º\n\t\t\t\t\t\t\t%s",staffs[j].studyF); + printf("\n\t\t\t¹¤×Ê£º\n\t\t\t\t\t\t\t%s",staffs[j].money); + printf("\n\t\t\t¼Òͥסַ£º\n\t\t\t\t\t\t\t%s",staffs[j].homedress); + printf("\n\t\t\tµç»°ºÅÂ룺\n\t\t\t\t\t\t\t%s",staffs[j].phonenum); + printf("\n\n\n\t\t\t\t\t\t°´AºÍDÇл»Ãûµ¥\n\t\t\t\t\t\t°´BackSpaceÍ˻ز˵¥"); + o=getch(); + if(o=='A') + { + if(j==1) + {system("cls"); + printf("ÕâÒѾ­ÊǵÚÒ»¸öÁË"); + system("pause"); + goto three; + } + j--; + goto three; + } + if(o=='D') + { + if(j==i&&j!=i) + {system("cls"); + printf("ÕâÊÇ×îºóÒ»¸öÁË"); + system("pause"); + goto three; + } + j++; + goto three; + } + if(o==8) + return 0; + } + if(o=='B') + { system("cls"); + printf("Ö°¹¤ºÅ ÐÕÃû ÐÔ±ð ѧÀú ¹¤×Ê µç»°ºÅÂë ¼Òͥסַ\n"); + int p; + for(p=1;p + + + + + diff --git a/课设/课设.layout b/课设/课设.layout new file mode 100644 index 0000000..2c475dc --- /dev/null +++ b/课设/课设.layout @@ -0,0 +1,10 @@ + + + + + + + + + +