#include
#include
#include
typedef struct
{
char num[15];
char name[20];
char credit[10];
char clas[20];
char teacher[20];
}student;
student pe[80];
int menu_select()
{
char c;
do{
system("cls");
printf("+---------------------------+\n");
printf("| |\n");
printf("| 欢迎使用课程信息管理系统|\n");
printf("| |\n");
printf("+---------------------------+\n");
printf("\t\t *****课程信息管理系统***** \n");
printf("\t\t ┌───────┐\n");
printf("\t\t │1. 增加记录│\n");
printf("\t\t │2. 显示记录│\n");
printf("\t\t │3. 查询记录│\n");
printf("\t\t │4. 修改记录│\n");
printf("\t\t │5. 删除记录│\n");
printf("\t\t │6. 存储记录│\n");
printf("\t\t │0. 退出程序│\n");
printf("\t\t └───────┘\n");
printf("\t\t请您选择(0-6):");
c=getchar();
}while(c'6');
return(c-'0');
}
int Input(student per[],int n)
{
int i=0;
char sign,x[10];
while(sign!='n'&&sign!='N')
{
printf("\t课程编号:");