canezzy

GroupOfStudents.h

Dec 3rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. //============================================================================
  2. // File Name : GroupOfStudents.h
  3. // Authors : You
  4. // Version : 1.0
  5. // Copyright : Your copyright notice (if applicable)
  6. // Description : C++ group project
  7. //============================================================================
  8.  
  9.  
  10. #ifndef GROUPOFSTUDENTS_H_
  11. #define GROUPOFSTUDENTS_H_
  12.  
  13. #include <vector>
  14. #include "StudentCourses.h"
  15.  
  16. using std::vector;
  17.  
  18. class GroupOfStudents
  19. {
  20. private:
  21. vector<StudentCourses> sc;
  22. void search_for_highest(vector<int>& indices_max) const; // utility
  23.  
  24. public:
  25. GroupOfStudents() {}
  26. GroupOfStudents(const vector< StudentCourses >& v);
  27.  
  28. // add required methods
  29.  
  30. const vector<StudentCourses>& get_student_courses() const;
  31. void set_student_courses(vector<StudentCourses>& v);
  32. void write_to_file(bool binar) const;
  33. void pozovi_sort(bool id) ;
  34. friend void sort_id(vector<StudentCourses> &grupe);
  35. friend void sort_prezime(vector<StudentCourses> &grupe);
  36. };
  37.  
  38. #endif /*GROUPOFSTUDENTS_H_*/
Add Comment
Please, Sign In to add comment