-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
60 lines (58 loc) · 1.36 KB
/
main.cpp
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "structures.h"
#include "Fonctions.h"
#include "FCFS.h"
#include "SRT.h"
#include "SPF.h"
#include "Priorite.h"
#include "RR.h"
#include "Avec_priorite.h"
int main(int argv,char* argc[])
{
system("color 0A");
processList list;
int choix;
bool sortie= false;
do{
printf(" Menu\n");
printf(" 1 - FCFS\n");
printf(" 2 - SRT\n");
printf(" 3 - SPF\n");
printf(" 4 - Plus prioritaire en premaire \n");
printf(" 5 - ROUND ROBIN \n");
printf(" 6 - Quiter\n");
printf("Votre choix : ");
scanf("%d",&choix);
switch(choix){
case 1 : //FCFS
initprocessList(&list);
start_FCFS_processor(&list);
afficher(&list);
break;
case 2 : //SRT
initprocessList(&list);
start_SRT_processor(&list);
afficher(&list);
break;
case 3 : //SPF
initprocessList(&list);
start_SPF_processor(&list);
afficher(&list);
break;
case 4 :
initprocessList(&list);
start_PRIO_processor(&list);
afficher(&list);
break;
case 5 :
initprocessList(&list);
start_RR_processor(&list);
afficher(&list);
break;
case 6 :
sortie=true;
break;
default : printf("Donnez un bonne choix \n");
}
}while(!sortie);
return 0;
}