⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 student.h

📁 基于链表模板的学生成绩管理系统
💻 H
字号:
# ifndef STUDENT_CLASS
# define STUDENT_CLASS

# include <iostream>
# include <string>
# include <fstream>

using namespace std;

class Student
{
public:
	Student(int sn=0,string sna="",double ma=0.0,double ch=0.0);
	Student(const Student& s);
	bool operator==(Student& s);
	bool operator!=(Student& s);
	Student& operator=(const Student& s);
	friend ifstream& operator>>(ifstream& in,Student& s);
	friend ofstream& operator<<(ofstream& on,Student& s);
	friend ostream& operator<<(ostream& os,Student& s);
	int GetSno(){return sno;}
	string GetSname(){return sname;}
	double GetMath(){return math;}
	double GetChinese(){return chinese;}
	double GetAvg(){return avg;}
private:
	int sno;
	string sname;
	double math;
	double chinese;
	double avg;
};


# endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -