student.h

来自「文件包含了很多VC实例」· C头文件 代码 · 共 29 行

H
29
字号
#ifndef _STUDENT_H_
#define _STUDENT_H_
#include <string>
using namespace std;
class CStudent
{
private:
	string strName ;
	double chinese ;
	double math;
	double english;
public:
	CStudent();
	CStudent(string Name,double c,double m,double e);
	CStudent operator+(CStudent S);
	friend ostream& operator<<(ostream& out , CStudent S);
	void SetChinese(double a);
	void SetMath(double a);
	void SetEnglish(double a);
	string returnName();
	double returnChinese();
	double returnMath();
	double returnEnglish();
	double returnTotalPreformance();
	double returnAverage();
	~CStudent(){}
};
#endif

⌨️ 快捷键说明

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