-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (29 loc) · 749 Bytes
/
main.cpp
File metadata and controls
32 lines (29 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "Controller.h"
#include "View.h"
#include "Traitement.h"
int main(int argc, char *argv[])
{
if (argc > 1)
{
int argument = atoi(argv[1]); // Convertir l'argument en entier
cout << "TEST EXECUTION" << endl;
switch (argument)
{
case 1:
Traitement::chargerDonneesTest();
break;
default:
cout << "Argument non valide" << endl;
Traitement::chargerDonnees();
}
}
else
{
// Si aucun argument n'est passé, exécuter Traitement::chargerDonnees()
Traitement::chargerDonnees();
}
View::MenuConnexion();
Traitement::clean();
Controller::clean();
return 0;
}