-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsous_programmes.cpp
More file actions
64 lines (55 loc) · 1.34 KB
/
sous_programmes.cpp
File metadata and controls
64 lines (55 loc) · 1.34 KB
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
61
62
63
64
#include "Classes.h"
string conversionSommetVille(int nombre){
switch (nombre) {
case 0:
return "Paris";
break;
case 1:
return "Tallinn";
break;
case 2:
return "Tokyo";
break;
case 3:
return "Sydney";
break;
case 4:
return "Tananarive";
break;
case 5:
return "Chicago";
break;
case 6:
return "Dubai";
break;
case 7:
return "Santiago";
break;
default: "ERREUR";
break;
}
return "ERREUR";
}
std::string choixavion()
{
int choixA;
std::string TypeAvionChoix;
std::cout<<"Veuillez choisir le type d'avion avec lequel vous voulez voler"<<std::endl;
std::cout<<"pour choisir un avion de type cours courrier entrer 1"<<std::endl;
std::cout<<"pour choisir un avion de type moyen courrier entrer 2"<<std::endl;
std::cout<<"pour choisir un avion de type long courrier entrer 3"<<std::endl;
std::cin>>choixA;
if(choixA == 1)
{
TypeAvionChoix = "Cours_Courrier";
}
if(choixA == 2)
{
TypeAvionChoix = "Moyen_Courrier";
}
if(choixA == 3)
{
TypeAvionChoix = "Long_Courrier";
}
return TypeAvionChoix;
}