administrator.cpp
来自「程序功能: 1 管理员开设课程; 2 学生可以选择课程; 3 学生注册; 」· C++ 代码 · 共 35 行
CPP
35 行
#include "cpp9.h"
#include"Administrator.h"
/********************
* 设置课程函数
********************/
void Administrator::manage()
{ cout<<"\t\t\t开设课程:"<<endl;
course *topco;
topco=new course;
course co;
co.courselisr(topco);
topco->save(topco);
topco->load(topco);
topco->display(topco);
cout<<"\t\t\t学生注册"<<endl;
topco->display(topco);
Student *top;
ASK(top);
top=top->input(top,topco);
cout<<"\t\t\t教师注册"<<endl;
topco->load(topco);
topco->display(topco);
teacher *topt;
topt=new teacher;
topt=topt->teclist(topt,topco);
cout<<"\t\t\t教师给成绩"<<endl;
topt->GiveScore(topt,top);
top->setave(top);
cout<<"\t\t\t管理员管理"<<endl;
top->handle_menu(top);
delete topco;
delete topt;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?