Ajout ecran, clavier, chaine de caractères, reste a tester et a faire la version non securisée
This commit is contained in:
parent
866b672eca
commit
58be4fb135
6 changed files with 20 additions and 29 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 5eaffa4453e7258dd79040a10d7d7b7205eaefab
|
Subproject commit 012f46f03cec55c7bdd50376861bc6cf86fde4b5
|
|
@ -1 +1 @@
|
||||||
Subproject commit 712e317901212d1917739b90577e715154e09afe
|
Subproject commit 475fb8dbbad67f0e3118911d968d52d889440f3f
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9b91ac00367bf25679448763cbc02c132bcaf090
|
Subproject commit a035a534e9af60372d695584389a547e9cb064cb
|
|
@ -1 +1 @@
|
||||||
Subproject commit bc036e3c948c7efc893f07195dbec34e9e20c446
|
Subproject commit 9e9dd66c3a5164987fc37082b69c62f28bd5784a
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8cac7807f08791ea9cb53befe1e7de175ac73d37
|
Subproject commit 8b1dc18f3a1b93b760b560bca2c3e54a53de6ca0
|
|
@ -1,47 +1,38 @@
|
||||||
int lire_tableau() {
|
int lire_tableau() {
|
||||||
int tab[5] = {0,0,0,0,0};
|
int tab[5] = {0,0,0,0,0};
|
||||||
|
|
||||||
printf(255);
|
print("Veuillez saisir une valeur\n");
|
||||||
stop(20);
|
|
||||||
printf(0);
|
|
||||||
stop(20);
|
|
||||||
printf(255);
|
|
||||||
stop(20);
|
|
||||||
printf(0);
|
|
||||||
stop(200);
|
|
||||||
int val = get();
|
int val = get();
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
while (i<8) {
|
while (i<10) {
|
||||||
tab[5-i] = val;
|
tab[5-i] = val;
|
||||||
i = i + 1;
|
i = i + 1;
|
||||||
}
|
}
|
||||||
|
i = 0;
|
||||||
|
while (i < 5) {
|
||||||
|
print("tab[");
|
||||||
|
print(i);
|
||||||
|
print("] = ");
|
||||||
|
print(tab[i]);
|
||||||
|
print("\n");
|
||||||
|
i = i + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int youVeBeenHacked() {
|
int youVeBeenHacked() {
|
||||||
while (1) {
|
print("YOU HAVE BEEN HACKED\n");
|
||||||
printf(255);
|
|
||||||
stop(10);
|
|
||||||
printf(0);
|
|
||||||
stop(10);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int legitimeFunction() {
|
int legitimeFunction() {
|
||||||
int val = 1;
|
print("Fonction legitime\n");
|
||||||
int i = 0;
|
|
||||||
while (i<8) {
|
|
||||||
printf(val);
|
|
||||||
stop(20);
|
|
||||||
val = val * 2;
|
|
||||||
i = i + 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
print("Debut d'un programme\n");
|
||||||
int a = 0;
|
int a = 0;
|
||||||
int b = 0;
|
int b = 0;
|
||||||
lire_tableau();
|
lire_tableau();
|
||||||
legitimeFunction();
|
legitimeFunction();
|
||||||
printf(a);
|
print(a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue