You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.4 KiB
72 lines
1.4 KiB
#include<stdio.h>
|
|
#include<stdlib.h>
|
|
#include"inputcouse.h"
|
|
int N1,N2,kk1,kk2,kk3;
|
|
struct student*head1;
|
|
struct couse*head2;
|
|
struct student
|
|
{
|
|
int number1;//学号
|
|
char name[10];//学生姓名
|
|
int cnumber;//已选课程编号
|
|
int csum;//已选课程数量
|
|
struct student*next;
|
|
};
|
|
struct couse
|
|
{
|
|
int number2;//课程编号
|
|
char cname[10];//课程名称
|
|
char xingzhi[50];//课程性质
|
|
int nelenum;//已选课程人数
|
|
int nelesum;//课程人数上限
|
|
int timesum;//总学时
|
|
int time;//授课学时
|
|
int time2;//实验学时
|
|
int score;//学分
|
|
int date;//开课学期
|
|
struct couse*next;
|
|
|
|
};
|
|
void M()
|
|
{for(kk1=0;kk1<1100;kk1++)
|
|
for(kk2=0;kk2<1200;kk2++)
|
|
for(kk3=0;kk3<1200;kk3++);
|
|
|
|
}
|
|
int main()
|
|
{int i;
|
|
printf("\t\t\t 欢迎使用学生选课系统!\n\n\n");
|
|
printf("\t\t\t 主菜单\n\n");
|
|
printf("\t\t\t* 1.录入课程信息 *\n\n");
|
|
printf("\t\t\t* 2.课程信息管理 *\n\n");
|
|
printf("\t\t\t* 3.录入学生信息 *\n\n");
|
|
printf("\t\t\t* 4.学生信息管理 *\n\n");
|
|
printf("\t\t\t* 5.学生选课 *\n\n");
|
|
printf("\t\t\t* 6.退出 *\n\n");
|
|
printf("请选择1~6\n\n");
|
|
scanf("%d",&i);
|
|
if(i<1||i>6)
|
|
{
|
|
printf("输入错误,请重试!\n");
|
|
goto start;
|
|
}
|
|
switch(i)
|
|
{case 1:system(cls);
|
|
inputcouse();
|
|
goto start;
|
|
break;
|
|
case 2:
|
|
break;
|
|
case 3:
|
|
break;
|
|
case 4:
|
|
break;
|
|
case 5:
|
|
break;
|
|
case 6:{system("cls");
|
|
printf("谢谢您的使用!!!");
|
|
}
|
|
}
|
|
return 0;
|
|
}
|