diff --git a/学生信息.txt b/学生信息.txt index 8fc56f1..c1ae609 100644 Binary files a/学生信息.txt and b/学生信息.txt differ diff --git a/机房机位预订系统.exe b/机房机位预订系统.exe deleted file mode 100644 index afaed08..0000000 Binary files a/机房机位预订系统.exe and /dev/null differ diff --git a/机房机位预订系统002.cpp b/机房机位预订系统003.cpp similarity index 86% rename from 机房机位预订系统002.cpp rename to 机房机位预订系统003.cpp index 2f22d4b..03a1190 100644 --- a/机房机位预订系统002.cpp +++ b/机房机位预订系统003.cpp @@ -26,12 +26,12 @@ struct wait{ char number[3]; char haoma[20]; }w[C];//ȴĽṹ + int main(void) { JIEMIAN(); - return 0; - } +} void JIEMIAN() { int n,a; @@ -40,17 +40,17 @@ void JIEMIAN() printf("\t\tλԤԼϵͳ\n"); puts("\t\t ˵"); puts("\t\t\t 1.ѯijʱλλϢ."); - puts("\t\t\t 2.Ԥһջλ."); + puts("\t\t\t 2.Ԥһջλ."); puts("\t\t\t 3.ѯȴϢ."); puts("\t\t\t 4.ȡԤ."); puts("\t\t\t 5.˳ϵͳ."); puts("\t\t\n"); - printf("\t˵ڵ1-5ѡз:\n"); + printf("\t*˵ڵ1-5ѡз:\n"); scanf("%d",&n); if(n<1||n>5) { a=1; - printf("ѡ."); + printf("ѡ.\n"); getchar(); } else @@ -77,23 +77,23 @@ void JIEMIAN() XINXI(); } if(time>=8&&time<20) - { + { slove (time); - JIEMIAN(); -} + JIEMIAN(); + } } void YUDING() { int time,i,a,b,j; char c; FILE *fp; //ļݡ - printf("8-20ʱڣԤʱ:"); + printf("8-20ʱڣԤʱ:"); scanf("%d",&time); if(time<8||time>=20) { printf(" ʱ\n"); printf(" ȷʱ!\n"); - printf("8-20ʱڣԤʱ:"); + printf("8-20ʱڣԤʱ:"); scanf("%d",&time); } slove(time); @@ -105,12 +105,12 @@ void JIEMIAN() printf("-޷ļ!-\n"); exit(0); } - printf(" ҪԤĻλź͵绰(λź͵绰֮ʹÿո)"); + printf(" ҪԤĻλź͵绰(λź͵绰֮ʹÿո)"); scanf("%s %s",w[i].number,w[i].haoma); for(i=0;i<1;i++) fwrite(&w[i],sizeof(struct wait),1,fp); fclose(fp); //һṹ嵥Ԫļ - printf("\t\t ٴҪԤĻλ!(ʱͬȻܵԤʧܣ)\n"); + printf("\t\t ٴҪԤĻλ!(ʱͬȻܵԤʧܣ)\n"); scanf("%d",&a); getchar(); x[T]--; @@ -120,7 +120,7 @@ void JIEMIAN() } else { - printf("\n\t ʱûбԤĵԣ\n"); + printf("\n\t ʱûбԤĵԣ\n"); for(i=T+1;i<6;i++) { time=9+2*i; @@ -129,7 +129,7 @@ void JIEMIAN() printf("\t Ŀеʱǣ%d\n",2*i+8); break; } - printf("\t ҪԤ(y/nʾǷԤ)\n"); + printf("\t ҪԤ(y/nʾǷԤ)\n"); scanf("%s",&c); getchar(); if(c=='Y'||c=='y') @@ -152,7 +152,7 @@ void JIEMIAN() { dengdai(j); } - printf("\n\t\t ԤĻλźϵʽ\n"); + printf("\n\t\t ԤĻλźϵʽ\n"); if((fp=fopen("ѧϢ.txt","a"))==NULL) { printf("-޷ļ!-\n"); @@ -162,7 +162,7 @@ void JIEMIAN() for(j=0;j<1;j++) fwrite(&w[j],sizeof(struct wait),1,fp); fclose(fp); - printf("ٴҪԤĻλţ\n"); + printf("ٴҪԤĻλţ\n"); scanf("%d",&b); x[T]--;//һ jiwei[T][b]=1; @@ -175,7 +175,7 @@ void JIEMIAN() void QUXIAO() { int time,n; - printf("8-20ʱѾԤʱ䣺\n"); + printf("8-20ʱѾԤʱ䣺\n"); scanf("%d",&time); if(time<8||time>=20) {