Skip to content
Snippets Groups Projects
Course.h 533 B
Newer Older
  • Learn to ignore specific revisions
  • Pelotrio's avatar
    Pelotrio committed
    #ifndef COURSE_H
    #define COURSE_H
    
    #include <string>
    #include "Student.h"
    
    class Course {
    private:
        std::string name;
    
    Pelotrio's avatar
    Pelotrio committed
        Student *firstStudent;
        Student *lastStudent;
    
    Pelotrio's avatar
    Pelotrio committed
    
    public:
        explicit Course(std::string name);
    
    
    Pelotrio's avatar
    Pelotrio committed
        void addStudent(Student *student);
    
    Pelotrio's avatar
    Pelotrio committed
    
        void deleteStudent(int matriculationNumber);
    
        void displayStudent(int matriculationNumber);
    
        void displayStudents();
    
        void displayCourse();
    
    Pelotrio's avatar
    Pelotrio committed
    
        std::string getName() const;
    
        void sort();
    
        Student *getStudent(int matriculationNumber);
    
    Pelotrio's avatar
    Pelotrio committed
    };
    
    #endif