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

📄 student.h

📁 二叉树的 学生成绩管理系统 c
💻 H
字号:
#ifndef STUDENT_CLASS
#define STUDENT_CLASS

#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>

#include "String.h"

class Student
{
public:
	Student();
	Student(long & No,String & Name,String & Sex,
		long & Score);
	Student(long & No){no=No;}
    Student(const Student & S);
	Student & operator =(Student & S);
	virtual ~Student(){};
	friend ostream & operator<<(ostream & os,Student & s);
	friend istream & operator>>(istream & is,Student & s);
	friend ifstream & operator>>(ifstream & in,Student & s);
	int operator ==(Student & S) const
	{
		return no==S.no;
	}
	int operator !=(Student & S) const
	{
		return no!=S.no;
	}
	int operator >(Student & S) const
	{
		return no>S.no;
	}
	int operator <(Student & S) const
	{
		return no<S.no;
	}
	int operator >=(Student & S) const
	{
		return score>S.score;
	}
	int operator <=(Student & S) const
	{
		return score<S.score;
	}
private:
	long no;
	String name;
	String sex;
	long score;
};

#endif

⌨️ 快捷键说明

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