-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
31 lines (26 loc) · 859 Bytes
/
main.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
#include <iostream>
#include <iostream>
#include <vector>
#include <string>
#include "Exercice1.h"
using namespace std;
int main() {
std::cout << "Hello, World!" << std::endl;
Exercice1 ex;
std::vector<string> Personnes = {"Margaux","Bertrand","Jul"};
//std::vector<string> Personnes = {"Margaux"};
std::vector<vector<float>> Notes = {{10,12,14},{0,12,19},{19,0}};
//std::vector<string> Notes = {{10,12,14}};
for(int i = 0 ; i < Personnes.size();i++){
for(int j = 0; j < Notes[i].size();j++){
ex.ajouter(Personnes[i],Notes[i][j]);
}
}
cout<< "Moyenne de Margaux : " << ex.moyenne("Margaux");
std::vector<string> ex3 = ex.getNomByNoteSupEgal(19);
cout << "Personnes ayant 19 ou plus"<< endl;
for(int i = 0;i<ex3.size();i++){
cout << ex3[i] << endl;
}
return 0;
}