📄 student.h
字号:
#ifndef STUDENT_CLASS
#define STUDENT_CLASS
#include <iostream>
using namespace std;
class Application;
class Student
{
friend class Application;
private:
unsigned int id;
char name[80];
char gender;
unsigned int age;
double score;
public:
Student(unsigned int i = 0, char* n = "", char g = 0, unsigned int a = 0, double s = 0);
bool operator < (const Student& rhs);
friend ostream& operator << (ostream& os, const Student& rhs);
friend istream& operator >> (istream& is, Student& rhs);
};
#endif // STUDENT_CLASS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -