Téléverser les fichiers vers "/"

This commit is contained in:
2026-02-20 15:17:47 +00:00
parent cf3cb73dae
commit 5090daa1e0
5 changed files with 67 additions and 0 deletions

20
Grade.h Normal file
View 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
View 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
View 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
View 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
View 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