-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent_new.h
More file actions
35 lines (28 loc) · 1.18 KB
/
Student_new.h
File metadata and controls
35 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef GUARD_Student_new_h
#define GUARD_Student_new_h
#include "Student_info.h"
class Student_new : public Student_info
{
private:
double health;
double looks;
public:
double getHealth() { return health; }
double getLooks() { return looks; }
void assignHealth(double health) { this->health = health; }
void assignLooks(double looks) { this->looks = looks; }
void doSth(double, double, double, double, double);
void love(ifstream& is, vector<Student_new>& vecStudNew);
void breakUp(ifstream& is, vector<Student_new>& vecStudNew);
static void init(vector<Student_new>& vecStudNew);
static ifstream& readInstruct(ifstream& is,
vector<Student_new>& vecStudNew, Dorm_info& dorm);
static ifstream& readDoSth(ifstream& is, vector<Student_new>& vecStudNew,
const string& str, Dorm_info& dorm);
static void readConfig(char* config, iptData& configData);
static void readConfig(iptData& configData);
static void putStudentInRoom(vector<Student_new>& vecStudNew, Dorm_info& dorm);
static void saveData(vector<Student_new>& vecStudNew, Dorm_info& dorm);
static void loadData(vector<Student_new>& vecStudNew, Dorm_info& dorm, iptData& configLoad);
};
#endif