diff --git a/课设.cpp b/课设.cpp index 5fec917..dd7b0be 100644 --- a/课设.cpp +++ b/课设.cpp @@ -7,7 +7,6 @@ #define N 7 void read(); void save(); - int size=3; struct student { @@ -16,8 +15,7 @@ struct student int scorem,scoreq,scoreg,scorey; char ximing[20]; }stu[N],temp; - -void input() //ÊäÈëԭʼÊý¾Ý// +void input() { system("cls"); printf("\t************ÊäÈë½çÃæ************\n"); @@ -28,7 +26,7 @@ void input() // for(int i=0;itm_year+1900,pt->tm_mon+1,pt->tm_mday); /*ÏÔʾµ±Ç°ÏµÍ³ÈÕÆÚ*/ + printf("\t\tµ±Ç°ÏµÍ³ÈÕÆÚ:%d-%d-%d\n",pt->tm_year+1900,pt->tm_mon+1,pt->tm_mday); printf("======================²Ëµ¥=====================\n"); printf(" 1.ÊäÈë 2.²éÕÒ \n"); printf(" 3.ÅÅÐò 4.ÐÞ¸Ä \n"); @@ -339,8 +323,7 @@ void menu() printf(" 7.²åÈë 8.±£´æ \n"); printf(" 9.ÏÔʾ 0.Í˳ö\n"); printf("===============================================\n"); - printf("ÇëÑ¡Ôñ¹¦ÄÜ<1-8>:[ ]\b\b"); - //getchar(); + printf("ÇëÑ¡Ôñ¹¦ÄÜ<0-9>:[ ]\b\b"); scanf("%d",&ch1); switch(ch1) { @@ -360,7 +343,7 @@ void menu() defen(); break; case 6: - shancchu(); + shanchu(); break; case 7: charu(); @@ -381,12 +364,11 @@ void menu() printf("ÏëÒª¼ÌÐø²Ù×÷Çë°´y\n"); getchar(); scanf("%2c",&ch2); - }while(ch2=='y'); //Ìõ¼þÅÐ¶Ï + }while(ch2=='y'); } - int main(void) { - system("color 3f"); + system("color f"); //Logon(); menu(); } diff --git a/课设.exe b/课设.exe index 860b3ad..54ae6b3 100644 Binary files a/课设.exe and b/课设.exe differ