Téléverser les fichiers vers "/"
This commit is contained in:
20
Grade.h
Normal file
20
Grade.h
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#ifndef GRADE_H
|
||||||
|
#define GRADE_H
|
||||||
|
|
||||||
|
class Grade {
|
||||||
|
private:
|
||||||
|
int studentId;
|
||||||
|
int courseId;
|
||||||
|
float value;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Grade(int studentId, int courseId, float value);
|
||||||
|
|
||||||
|
int getStudentId() const;
|
||||||
|
int getCourseId() const;
|
||||||
|
float getValue() const;
|
||||||
|
|
||||||
|
void setValue(float value);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
6
Professor.cpp
Normal file
6
Professor.cpp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include "Professor.h"
|
||||||
|
|
||||||
|
Professor::Professor(int id, const std::string& username, const std::string& password)
|
||||||
|
: User(id, username, password) {
|
||||||
|
role = Role::PROF;
|
||||||
|
}
|
||||||
14
Professor.h
Normal file
14
Professor.h
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#ifndef PROFESSOR_H
|
||||||
|
#define PROFESSOR_H
|
||||||
|
|
||||||
|
#include "User.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
class Professor : public User {
|
||||||
|
public:
|
||||||
|
Professor(int id, const std::string& username, const std::string& passwordHash);
|
||||||
|
|
||||||
|
void displayMenu() const override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
8
Student.cpp
Normal file
8
Student.cpp
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#include "Student.h"
|
||||||
|
|
||||||
|
Student::Student(int id, const std::string& username, const std::string& password, const std::string& email)
|
||||||
|
: User(id, username, password), email(email) {
|
||||||
|
role = Role::STUDENT;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string Student::getEmail() const { return email; }
|
||||||
19
Student.h
Normal file
19
Student.h
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#ifndef STUDENT_H
|
||||||
|
#define STUDENT_H
|
||||||
|
|
||||||
|
#include "User.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
class Student : public User {
|
||||||
|
private:
|
||||||
|
std::string email;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Student(int id, const std::string& username, const std::string& passwordHash, const std::string& email);
|
||||||
|
|
||||||
|
std::string getEmail() const;
|
||||||
|
|
||||||
|
void displayMenu() const override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user