📄 +
字号:
#ifndef _Function_
#define _Function_
#include<iostream.h>
#include<string.h>
#include"student.h"
//using namespace std;
#define MAXNUM 50
Student *students[MAXNUM]; //存放录入学生的地址
int up=0,down=MAXNUM;
//Student ClearStudent[MAXNUM]; //存放录入学生的地址,以便删除时好寻找
// 主菜单界面
void MasterMenu(void)
{
//loop:
cout<<"**************************************************************************"<<endl;
cout<<" 欢迎进入学生信息系统 "<<endl;
cout<<" 1: 录入学生信息 2:修改学生信息 "<<endl;
cout<<" 3: 查询学生信息 4:删除学生信息 "<<endl;
cout<<" 5: 查看全部学生信息 6: 退出 "<<endl;
cout<<"***************************************************************************"<<endl;
}
// 录入学生信息
/*void Rigster()
{
int i=0;
char Q;
for(;;)
{
if(up<MAXNUM)
{
students[up]= new Student(); //添加录入
students[up]->insert();
up++;
cout<<"Y:退出录入系统;N:继续录入学生信息"<<endl;
cin>>Q;
if(Q=='Y')
goto labl;
}
else
{
cout<<"Waring:系统容量不足,不能在录入学生信息!"<<endl;
}
}
}*/
void showexitstudent(void)
{
int i;
for(i=0;i<up;i++)
{
(students[i]->showstudentinformation());
}
}
void showmenu()
{
cout<<"学号 姓名 专业 班级 年龄 身份证 家庭住址 "<<endl;
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -