📄 studentinfo.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -