Bonjour à tous
Je ne suis pas du tout dans le domaine de la programmation, c'est pour cela que je viens vous demander votre aide...
Je pense que pour vous, ça va vous demander 3 secondes pour répondre à ma demande
J'organise une Murder Party, et pour rendre la soirée plus réaliste, l'auteur nous donne la possibilité d'avoir un petit programme en cpp.
Voici le lien PDF : http://www.murder-party.org/wp-conte...s-detoiles.pdf
Le code se trouve page 157 mais je vais vous le retranscrire plus bas car le copié-collé est compliqué (mélange images et texte).
Est-ce que quelqu'un aurait la possibilité et la gentillesse de me créer un fichier exécutable pour OSX svp ?
Voici le code (intelligence_artificielle_EM85_Galaxy.cpp) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157 #include <iostream> #include <stdlib.h> #include <stdio.h> #include <fstream> #include <cmath> #include <iomanip> using namespace std; int main() { int i; bool END,TERRA; double ID,WAIT,RUB; ID=0; TERRA=0; END=0; WAIT=1e6; do{ cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; cout << "ENTRER CODE IDENTIFICATION" << endl; cin >> ID; cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; if(ID==1023) { cout << "ID: COMMANDANT HARIS" << endl; cout << "PROCESSUS DE VERIFICATION SECONDAIRE" << endl; cout << "CODE DE SECURITE AVANT ACTIVATION ?" << endl; cin >> RUB; if(RUB==4268) { RUB=0; cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; cout << "ACTIVATION DU PROCESSUS TOP SECRET ?" << endl; cout<<"1==OUI //0==NON"<<endl; cin >> TERRA; if(TERRA==1) { cout << "ENTRER CODE D'ACTIVATION DU PROCESSUS DE TERRAFORMATION" << endl; cin >> RUB; if(RUB==7774) { cout << "CALCUL DES PARAMETRES EXTERNES" << endl; sleep(5); for(i=0; i<WAIT; i++) { cout << "....." << setprecision(14) << rand() << endl; } cout<<"----------------------------------------" << endl; cout<<"----------------------------------------" << endl; cout<<"PROCESSUS DE TERRAFORMATION INITIE" << endl; cout<<".....TERRAFORMATION EN COURS" << endl; cout<<".....TEMPS D'ATTENTE ESTIME : 602 JOURS" << endl; cout<<".....FIN DE LA MURDER PARTY" << endl; END=1; } else { cout<<"CODE INCORRECT" << endl;} cout<<"ABANDON DU PROCESSUS" << endl; } } else { cout<<"ABANDON DU PROCESSUS" << endl; } } else { cout << "CODE INCORRECT" << endl; cout << "ABANDON DU PROCESSUS" << endl; } cout << endl; cout << endl; cout << endl; cout << endl; } else if(ID==6052) { cout << "ID: NAVIGATEUR VEZEN" << endl; cout << "UTILISATION VENTAIL OBSERVATION" << endl; cout << "SCAN DE L'ENVIRONNEMENT PROCHE DU VAISSEAU" << endl; cout << "CALCUL DES PARAMETRES EXTERNES" << endl; sleep(5); for(i=0; i<WAIT; i++) { cout << "....." << setprecision(14) << rand() << endl; } cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; cout << "RAPPORT D'OBSERVATION PRET" << endl; cout << endl; cout << endl; cout << endl; cout << endl; } else if(ID==9085) { cout << "ID: CHEF MECANICIEN ALUDRA" << endl; cout << "DIAGNOSTIQUE DU VAISSEAU" << endl; cout << "SCAN DES FONCTIONS VITALES DU VAISSEAU" << endl; cout << "CALCUL DES PARAMETRES EXTERNES" << endl; sleep(5); for(i=0; i<WAIT; i++) { cout << "....." << setprecision(14) << rand() << endl; } cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; cout << "DIAGNOSTIQUE DU VAISSEAU PRET" << endl; cout << endl; cout << endl; cout << endl; cout << endl; } else if(ID==1109) { cout << "ID: MEDECIN DE BORD RANA" << endl; cout << "ANALYSE DES ECHANTILLONS DE SANG" << endl; cout << "SCAN DES PLAQUETTES ET GLOBULES" << endl; cout << "CALCUL DES PARAMETRES EXTERNES" << endl; sleep(5); for(i=0; i<WAIT; i++) { cout << "....." << setprecision(14) << rand() << endl; } cout << "----------------------------------------" << endl; cout << "----------------------------------------" << endl; cout << "BILAN DE SANTE PRET" << endl; cout << endl; cout << endl; cout << endl; cout << endl; } else { cout << "CODE IDENTIFICATION INCORRECT" << endl; cout << endl; cout << endl; cout << endl; cout << endl; } system("canberra-gtk-play -f Bip.ogg"); }while(END==0); return 0; }
Partager