|
|
|
@ -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");
|
|
|
|
|