commit 1ff2cfafa2c9d5e370b71de9787f5ad699b05b31 Author: p10293754 <1215573767@qq.com> Date: Wed Jan 9 11:50:58 2019 +0800 first commit diff --git a/课设.cpp b/课设.cpp new file mode 100644 index 0000000..5fec917 --- /dev/null +++ b/课设.cpp @@ -0,0 +1,392 @@ +#include +#include +#include +#include +#include +#define load sizeof(student) +#define N 7 +void read(); +void save(); + +int size=3; +struct student +{ + char num[10]; + char name[20]; + int scorem,scoreq,scoreg,scorey; + char ximing[20]; +}stu[N],temp; + +void input() //ÊäÈëԭʼÊý¾Ý// +{ + system("cls"); + printf("\t************ÊäÈë½çÃæ************\n"); + printf("ÇëÊäÈëÔ˶¯Ô±ºÅÂë,ÐÕÃû,100³É¼¨,ǦÇò³É¼¨,Ìø¸ß³É¼¨,ÌøÔ¶³É¼¨,ϵÃû:\n"); + for(int i=0;itm_year+1900,pt->tm_mon+1,pt->tm_mday); /*ÏÔʾµ±Ç°ÏµÍ³ÈÕÆÚ*/ + printf("======================²Ëµ¥=====================\n"); + printf(" 1.ÊäÈë 2.²éÕÒ \n"); + printf(" 3.ÅÅÐò 4.ÐÞ¸Ä \n"); + printf(" 5.µÃ·Ö 6.ɾ³ý \n"); + printf(" 7.²åÈë 8.±£´æ \n"); + printf(" 9.ÏÔʾ 0.Í˳ö\n"); + printf("===============================================\n"); + printf("ÇëÑ¡Ôñ¹¦ÄÜ<1-8>:[ ]\b\b"); + //getchar(); + scanf("%d",&ch1); + switch(ch1) + { + case 1: + input(); + break; + case 2: + find(); + break; + case 3: + paixu(); + break; + case 4: + xiugai(); + break; + case 5: + defen(); + break; + case 6: + shancchu(); + break; + case 7: + charu(); + break; + case 8: + save(); + break; + case 9: + read(); + + break; + case 0: + exit(0); + default: + printf("δ½øÐÐÈκβÙ×÷!"); + } + printf("\n"); + printf("ÏëÒª¼ÌÐø²Ù×÷Çë°´y\n"); + getchar(); + scanf("%2c",&ch2); + }while(ch2=='y'); //Ìõ¼þÅÐ¶Ï +} + +int main(void) +{ + system("color 3f"); + //Logon(); + menu(); +} diff --git a/课设.exe b/课设.exe new file mode 100644 index 0000000..860b3ad Binary files /dev/null and b/课设.exe differ