From 8e5ea7951d2e466c66810bad5499cf83d6cc069f Mon Sep 17 00:00:00 2001 From: p10293754 <1215573767@qq.com> Date: Thu, 10 Jan 2019 20:16:24 +0800 Subject: [PATCH] first commit --- 课设.cpp | 56 ++++++++++++++++++----------------------------------- 课设.exe | Bin 144673 -> 144672 bytes 2 files changed, 19 insertions(+), 37 deletions(-) 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 860b3ade74c85e07b61a85839863d8608acad6c0..54ae6b3816f2354669034a0739dfee5fd2e8ea9a 100644 GIT binary patch delta 4165 zcmZXWdrTBZ9LHxCI1#YiaR&%UxqA32Zx9i+79))k(O@4I1C7wCph0@RQd^~Wrdl;> zgd!bZNzrJfRRmM&384`yqPC$$kyZ(R&?2@qni3^Gs>XhYJ2U%hC)w=o=l7i7Z)SE6 z-tw)!QR^_-hyDl8xUlScMISEV+BYr@wEY@Uc6Mtqj;_BY%_mPGjvO{nCIza z4dQhmR`10RsrVull~EWTGmxhuHc5z1oU7stH+vg0A*oLoaxYrX@euO@fPn;kfMRjy z98cw&UA9)<&kYq&uqQrGh}Vd?Hg4lBVm@wZeGuj(>8Vb@2z>Py<14%8)b1_jqO#_0GDa86h`7?1Vf5F{bLRLVOu3AS527nvfYFiIenJ z^Miow1eLmuUBjZ$%6)~ik6TYW+wxkWo)Mrg&=n9XA-y02Y5FKnLByILa&XC+y2;>>j((O*r2A{Ov=A)e zbtH}rWGf+4L0UXZ-7_^&31i1nKnt1AI*<%pDzdmB1kXkS0_j|@%-D6 zAFIyK<7glpBsvs|m4l_i&>7FfCy0dsnvK6E%5ckC4tX`|q|$SO6qDKR1Q|(ud;wx4 zxF;AnqCli6RKnY$H%yVvz+RGgPYYf|S5Y z^?bcJJ3>q4`@{qIaGZerPcn%nkZXke2og=!%{34?RGgb20i^2u1;)IIRUk+UE>*&0 z2VPH;U|Arv#f2bi$Q0Iqw2-Q91!*PWD?#i;=O{=s@zeT(7#XOIc63UAkf`bW4w8#R z)M^+6IY6uf199FEok);@bp6gt2C-tTsVQfJ>>z#?iN-***$F{C>E_qsZwMSs5Xhmn z!OtL@h>trUy`+vBwn+i3pypXMQ6K@NAuoeelNzOiFqWZ{mu9$B zicWFCh}`!8#*&yvK&;S)M^9dLAQy?diy(}w_->GV;^!vFAnEu$5Oo|cwXa%MDwdfv z6E}(VCgc)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