?? student.h
字號:
#include<iostream.h>
#include<string.h>
#ifndef STUDENT
#define STUDENT
class Student
{
public:
Student(unsigned num,char *ps,char *zy,float g)
{
strcpy(pname,ps);
strcpy(zname,zy);
uid=num;
grade=g;
}
virtual void display(ostream& out);
protected:
char zname[20];
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 + -