评教管理系统

这是一个用于教学评估的管理系统,包括添加、修改、删除和搜索课程信息的功能。用户可以输入学号和姓名,然后选择相应的操作对课程进行管理。系统使用C++实现,包括教师和课程的类定义以及输入输出操作。
摘要由CSDN通过智能技术生成

设计题目

评教管理系统

已知技术参数和设计要求

1、 该系统主要处理日常评教信息。

2、 学生信息、教师信息、评教信息读写。

3、 评教信息的添加、修改、删除、查询。

4、 用类模板实现至少一个类,各种信息加入向量或链表,代码中至少有一处用到异常处理。

设计内容与步骤

1、 模块化程序设计。

2、 具体数据结构的定义及其处理数据算法的设计。

3、 锯齿型程序书写格式

4、 程序设计、实现、调试。

5、 课程设计说明书。

设计工作计划与进度安排

1、 程序设计10学时。

2、 实现与调试6学时。

3、 课程设计说明书4学时。

设计考核要求

1、 考勤20%

2、 课程设计说明书30%

3、 答辩、成果演示50%

 

#include<iostream>

 

#include<cstring>

#include<string>

 

using namespace std;

 

 

template<typename T>

class Person

{

public:

Person(){}

~Person(){}

T getnum() { return num;}

T getname() { return name;}

void setnum(T sn) { num = sn; }

void setname(T na) { name = na; }

private:

T num;

T name;

};

 

class Teacher

{

friend istream& operator>>(istream&, Teacher&);

friend ostream& operator<<(ostream&, const Teacher&);

 

public:

Teacher& operator=(const Teacher&);

Teacher() {}

int curriculumID;//课程号

char className[12];

int classnumber;

int semester;//学期

int teacherID;//教师号

char NAME[12];

char college[10];//大学

char Assess[1000];//评价

};

 

istream& operator>>(istream &is, Teacher &t)

{

cout << "please enter the curriculum's id:"; is >> t.curriculumID;

cout << "please enter the curriculum's name:"; is >> t.className;

cout << "please enter the curriculum's semester:"; is >> t.semester;

cout << "please enter the curriculum's college:"; is >> t.college;

cout << "please enter the curriculum's number:"; is >> t.classnumber;

cout << "please enter the curriculum's assess:"; is >> t.Assess;

cout << "please enter the teacher's ID:"; is >> t.teacherID;

cout << "please enter the teacher's name:"; is >> t.NAME;

return is;

}

 

ostream& operator<<(ostream &os, const Teacher &t)

{

os << "The information of this curriculun:" << endl;

os << endl;

os << "the curriculum's id:" << t.curriculumID << endl;

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值