⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentee.h

📁 一次作业练习
💻 H
字号:
#ifndef STUDENTEE_H
#define STUDENTEE_H

#include <fstream>
#include <iomanip>
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -