1 Star 1 Fork 0

huizhuoli/summer_study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Teacher.cpp 1.70 KB
一键复制 编辑 原始数据 按行查看 历史
//
// 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() {
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huizhuoli/summer_study.git
git@gitee.com:huizhuoli/summer_study.git
huizhuoli
summer_study
summer_study
master

搜索帮助