📄 student.h
字号:
//*********************
//** student.h **
//*********************
#include <iostream.h>
#include <string.h>
#ifndef STUDENT
#define STUDENT
//大学生类
class Student{
public:
Student(char* pS, unsigned num, float g)
{
strcpy(pName,pS);
uID=num;
grade=g;
}
virtual void display(ostream& out);
protected:
char pName[20];
unsigned int uID;
float grade;
};
ostream& operator<<(ostream& out, Student& st);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -