📄 sortdepart.h
字号:
#ifndef _SortScore_h
#define _SortScore_h
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
class SortMark
{
public:
SortMark(string num="",float m=0):sort_dep_num(num),mark(m){}
friend bool operator ==(const SortMark &lf,const SortMark& rf)
{
bool flag=true;
if(rf.sort_dep_num!=lf.sort_dep_num)
flag=false;
return flag;
}
friend std::ostream& operator <<(std::ostream& os,const SortMark& sortsc)
{
os<<setw(10)<<sortsc.sort_dep_num<<setw(10)<<sortsc.mark<<endl;
return os;
}
void AddMark(float m)
{
mark+=m;
}
private:
string sort_dep_num;
float mark;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -