📄 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 + -