studentee.~c
来自「一次作业练习」· ~C 代码 · 共 27 行
~C
27 行
#ifndef STUDENTEE_H
#define STUDENTEE_H
#include <fstream>
#include <string>
#include "Student.h"
class StudentEE : public Student{
public:
StudentEE();//constructing an empty StudentEE-object
StudentEE(string n, int id);//constructing an student-object with name = n, student_id = id, course3 = 0, course4 = 0
void read(istream& fin);//read and store the name and student-id and the credit points of course3 and course4
void write(ostream& fout);//write a line containing the name, student_id and course1 and course 2
void set_course3(int i);//set i as the course3's value
void set_course4(int i);//set i as the course4's value
int get_course3();//get course3's value
int get_course4();//get course4's value
private:
int course3;
int course4;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?