-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dataset.cpp
65 lines (41 loc) · 974 Bytes
/
Dataset.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Dataset.cpp
// Med_Aid
//
// Created by LE HUY on 7/21/20.
// Copyright © 2020 LE HUY. All rights reserved.
//
#include "Dataset.hpp"
#include <iostream>
using namespace std;
Student ::Student() {
}
void Student::setdata(string name, int id, double score) {
this -> name = name;
this -> id = id;
this -> score = score;
};
double Student :: getScore() {
return this->score;
}
string Student:: getName() {
return this-> name;
}
int Student:: getId() {
return this -> id;
}
void Student:: setName(string name) {
this -> name = name;
}
void Student:: setScore(double score) {
this -> score = score;
}
void Student :: setId(int id) {
this -> id = id;
}
void Student:: printStudent(Student* arr, int n){
for(int i = 0; i < n; i++) {
cout << arr[i].getName() << " ";
}
cout << "\n";
}