studentlist.~c

来自「一次作业练习」· ~C 代码 · 共 30 行

~C
30
字号
#ifndef STUDENTLIST_H
#define STUDENTLIST_H

#include <fstream>
#include <string>
#include "StudentCS.h"
#include "StudentEE.h"
#include "Student.h"

const int CAPACITY=3;

class StudentList{

      public:
             StudentList(); //construct an object
             void add(Student* student);//student is added to the end of the array
             void read(istream& fin); //the Student-data have been read and stored in the list
             void write(ostream& fout);//the data of the students have been written to fout
             int get_count();//get 'count' value
             void set_count(int c);//set c as the 'count' value


      private:
              Student* data[CAPACITY];
              int count;

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?