diff --git a/Untitled6.c b/Untitled6.c index c957648..d640480 100644 --- a/Untitled6.c +++ b/Untitled6.c @@ -34,6 +34,7 @@ void menu()//学 } void login()//登陆界面 { + system("CLS"); void teacher_login(); void student_login(); int q; @@ -61,6 +62,7 @@ void login()// } void teacher_login()//老师 { + system("CLS"); void search(); void look(); int e; @@ -93,6 +95,7 @@ void teacher_login()// } void student_login()//学生 { + system("CLS"); void out(); void search(); void look(); @@ -125,6 +128,7 @@ void student_login()//学 } void select()//学生选课函数 { + system("CLS"); FILE *fp1;//储存课程的文件 int i=0,temp=0,n,j,r,t,y; struct course courses[5]; @@ -179,6 +183,7 @@ void select()//学 } void look()//课程浏览函数 ,输出各个课程的信息 { + system("CLS"); struct course courses[5]; FILE *fp2; int i=0,j; @@ -210,12 +215,14 @@ void look()// } void search()//课程查询函数 { + system("CLS"); FILE *fp3; int num; struct course courses[5]; int i=0,j; printf("请输入需要查询的课程的编号:限1,2,3,4,5\n");//请输入1,2,3,4,5; scanf("%d",&num); + system("CLS"); if(num!=1&&num!=2&&num!=3&&num!=4&&num!=5) { printf("输入错误!按任意键返回\n"); @@ -253,6 +260,7 @@ void search()// } void put_course() { + system("CLS"); FILE *fp; struct course courses[5]; printf("老师向数据库文件输入五组课程数据。例如: \n"); diff --git a/Untitled6.exe b/Untitled6.exe index c176f65..5b831d4 100644 Binary files a/Untitled6.exe and b/Untitled6.exe differ diff --git a/course.txt b/course.txt index a652a7f..d28bbda 100644 Binary files a/course.txt and b/course.txt differ