Jeu de la devinette, fin
This commit is contained in:
parent
c098220404
commit
793d8ab2c1
Binary file not shown.
@ -22,3 +22,17 @@
|
|||||||
17 26 1740478633855772554 Exercices 1155f81bcff01d1c
|
17 26 1740478633855772554 Exercices 1155f81bcff01d1c
|
||||||
1 17 1740478665576958699 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
1 17 1740478665576958699 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
17 27 1740478665593958799 Exercices 1155f81bcff01d1c
|
17 27 1740478665593958799 Exercices 1155f81bcff01d1c
|
||||||
|
0 21 1740479003918944140 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
21 30 1740479003940944269 Exercices 1155f81bcff01d1c
|
||||||
|
1 18 1740479052572229571 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
18 26 1740479052589229671 Exercices 1155f81bcff01d1c
|
||||||
|
0 22 1740479430131443480 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
22 30 1740479430153443609 Exercices 1155f81bcff01d1c
|
||||||
|
0 17 1740479510354913889 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
17 26 1740479510371913989 Exercices 1155f81bcff01d1c
|
||||||
|
1 22 1740479668332840231 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
22 31 1740479668353840354 Exercices 1155f81bcff01d1c
|
||||||
|
0 36 1740479692423981495 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
36 54 1740479692458981700 Exercices 1155f81bcff01d1c
|
||||||
|
1 18 1740479711386092684 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3
|
||||||
|
18 27 1740479711403092783 Exercices 1155f81bcff01d1c
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
Start testing: Feb 25 11:17 CET
|
Start testing: Feb 25 11:35 CET
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
End testing: Feb 25 11:17 CET
|
End testing: Feb 25 11:35 CET
|
||||||
|
|||||||
10
main.c
10
main.c
@ -3,6 +3,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include<unistd.h>
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
const int size=8;
|
const int size=8;
|
||||||
@ -134,13 +135,14 @@ void hiddennumber() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
char again;
|
char again[1];
|
||||||
printf("Play again ? (o/n) ");
|
printf("Play again ? (o/n) ");
|
||||||
scanf("%c", again);
|
scanf("%s", &again);
|
||||||
if (again=='y') {
|
|
||||||
|
if (again[0]=='o') {
|
||||||
hiddennumber();
|
hiddennumber();
|
||||||
}
|
}
|
||||||
else if (again=='n') {
|
else if (again[0]=='n') {
|
||||||
printf("Until next time ! \n");
|
printf("Until next time ! \n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user