studentinfo.h

来自「学生信息管理系统:本程序可以实现输入」· C头文件 代码 · 共 53 行

H
53
字号
#ifndef Student_H
#define Student_H
typedef unsigned long int  ULInt;
typedef unsigned  int      UInt;
#include<iostream.h>
class Student
{
private:
	ULInt   number;           //学号
	char    name[80];         //姓名
	char  gender;           //性别
	UInt    age;              //年龄
	double  score;            //成绩
                                                                  
public:
	Student();


	void InputInfo();


	 ULInt Get_Student_number()
	 {
    	return number;
	 }

	char GetGender() 
	{
		return gender;
	}
    char* Getname()
	{
		return name;
	}

	double Get_Score()
	{
		return score;
	}

	bool operator < (const Student& s);
	bool operator > (const Student& s);
	bool operator == (const Student& s);
	bool operator != (const Student& s);
//	bool operator < (const Student& s);
	friend ostream& operator << (ostream& os, const Student& p);
    friend istream& operator >> (istream& is,Student& p);



	~Student(){}
};
#endif

⌨️ 快捷键说明

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