16 lines
400 B
C++
16 lines
400 B
C++
#ifndef DB_H
|
|
#define DB_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct Student {
|
|
std::string nom;
|
|
int notes[3];
|
|
};
|
|
|
|
// Export / Import selon rôle
|
|
bool exportData(const std::string& filename, const std::vector<Student>& students, const std::string& role, const std::string& login);
|
|
bool importData(const std::string& filename, std::vector<Student>& students, const std::string& role);
|
|
|
|
#endif |