📄 student.h
字号:
#pragma once
#ifndef INCLUDE_STUDENT_H
#define INCLUDE_STUDENT_H
#include "entity.h"
#include <string>
using namespace std;
class Student :
public Entity
{
int age;
char sex;
public:
Student(string n, string id, int age, char sex);
void setage(int age);
int getage()const;
void setsex(char sex);
char getsex()const;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -