代码拉取完成,页面将自动刷新
//
// Created by tjlhz on 2022/6/25.
//
#include "Teacher.h"
#include "iostream"
void CTeacher::DoFunction() {
bool exit = false;
while(true) {
cout << "请选择功能" << endl;
cout << "1.查询教学班级" << endl;
cout << "2.查询班级学生" << endl;
cout << "3.设置学生成绩" << endl;
cout << "4.查询班级学生成绩" << endl;
cout<<"其它.退出"<<endl;
int id;
cin>>id;
switch (id) {
case 1:
QueryTeachClass();
break;
case 2:
int courseId;
int studentId;
int scour;
cout<< "请输入学号, 课程号, 成绩";
cin>>studentId;
cin>>courseId;
cin>>scour;
SetScore(studentId, courseId, scour);
break;
case 3:
int teachClassId;
cout<< "请输入教学班号";
cin>>teachClassId;
QueryScore(teachClassId);
break;
case 4:
cout<< "请输入教学班号";
cin>>teachClassId;
QueryStudent(teachClassId);
break;
default:
exit = true;
}
if (exit)
break;
}
}
void CTeacher::QueryTeachClass() {
printf("QueryTeachClass");
}
void CTeacher::SetScore(int studentId, int courseId, int score) {
printf("SetScore");
}
void CTeacher::QueryScore(int teachCourseId) {
printf("QueryScore");
}
void CTeacher::QueryStudent(int teachCourseId) {
printf("QueryStudent");
}
void CTeacher::PrintMyInfo() {
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。