studentrecord3.h
来自「《数据结构、算法与应用》从C++语言应用角度列举了要点」· C头文件 代码 · 共 25 行
H
25 行
#ifndef studentRecord_
#define studentRecord_
#include <string>
using namespace std;
struct studentRecord
{
int score;
string* name;
int operator !=(studentRecord x) const
{return (score != x.score || name != x.name);}
operator int() const {return score;}
};
ostream& operator<<(ostream& out, const studentRecord& x)
{out << x.score << ' ' << *x.name << endl; return out;}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?