Skip to content
Snippets Groups Projects
Student.h 646 B
Newer Older
  • Learn to ignore specific revisions
  • Pelotrio's avatar
    Pelotrio committed
    #ifndef STUDENT_H
    #define STUDENT_H
    
    #include <string>
    
    class Student {
    private:
        std::string lastName;
        std::string firstName;
        int matriculationNumber;
        Student *nextStudent;
    
    Pelotrio's avatar
    Pelotrio committed
        Student *previousStudent;
    
    Pelotrio's avatar
    Pelotrio committed
    
    public:
        Student(std::string lastName, std::string firstName);
    
        std::string getLastName() const;
    
        std::string getFirstName() const;
    
        int getMatriculationNumber() const;
    
        Student *getNextStudent() const;
    
    
    Pelotrio's avatar
    Pelotrio committed
        Student *getPreviousStudent() const;
    
    
    Pelotrio's avatar
    Pelotrio committed
        void setNextStudent(Student *nextStudent);
    
    
    Pelotrio's avatar
    Pelotrio committed
        void setPreviousStudent(Student *previousStudent);
    
    
    Pelotrio's avatar
    Pelotrio committed
        static int generateMatriculationNumber();
    };
    
    #endif