trainings/AdvancedCppV2/Presentation/exercises/students
2024-04-26 11:36:08 +02:00
..
solution AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00
CMakeLists.txt AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00
README.md AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00
students.cpp AdvC++ - zadanie 2 students filtrowanie 2024-04-26 11:36:08 +02:00

Linux compilation

> mkdir build
> cd build
> cmake -DCMAKE_BUILD_TYPE=Debug ..
> make

Exercise

Open project students:

  • implement function filterStudents,
  • Student should be disqualified whether his average is below minAvergae,
  • Write an algorithm that prints students using ranges (do not implement friend operator<<)

Output:

Name: Jane | index: 743561 | average: 4.44
Name: Tom | index: 811111 | average: 4.36
Name: Mike | index: 811111 | average: 4.45