diff --git a/jilu.txt b/jilu.txt deleted file mode 100644 index b41da6a..0000000 --- a/jilu.txt +++ /dev/null @@ -1,2 +0,0 @@ -18408001202 -18408001201 diff --git a/课设2.cpp b/课设2.cpp index 2131aeb..f6d7510 100644 --- a/课设2.cpp +++ b/课设2.cpp @@ -8,6 +8,7 @@ struct }stu[40]; void cunchu(int s) { + system("cls"); int i; long long m; printf("\t\t\t\t\tΪÁË·½±ã¼Ç¼£¬ÇëÊäÈëÄãµÄѧºÅ£º"); @@ -20,17 +21,6 @@ void cunchu(int s) fprintf(fp,"%lld %d\n",m,s); fclose(fp); } -int jilu(long long y) -{ - FILE *fp; - if((fp=fopen("jilu.txt","a"))==NULL) - { - fp=fopen("jilu","w+"); - } - fprintf(fp,"%lld\n",y); - fclose(fp); - return y; -} int test(long long m) { int n=0,s=0,a=0,b=0,c=0,d=0,k,result; @@ -109,12 +99,7 @@ int kaishi() for(n=0;n<40;n++) if(zh[n]==m&&j==123) { - y=m; - z=m; - jilu(y); - if(y==z) - break; - else test(m);break; + test(m);break; } if(n==40) { diff --git a/课设2.exe b/课设2.exe index 85d9f84..f230a2f 100644 Binary files a/课设2.exe and b/课设2.exe differ