diff --git a/cmake-build-debug/.ninja_deps b/cmake-build-debug/.ninja_deps index 5e4f45a..8e1f8d2 100644 Binary files a/cmake-build-debug/.ninja_deps and b/cmake-build-debug/.ninja_deps differ diff --git a/cmake-build-debug/.ninja_log b/cmake-build-debug/.ninja_log index da713cb..de05a25 100644 --- a/cmake-build-debug/.ninja_log +++ b/cmake-build-debug/.ninja_log @@ -22,3 +22,17 @@ 17 26 1740478633855772554 Exercices 1155f81bcff01d1c 1 17 1740478665576958699 CMakeFiles/Exercices.dir/main.c.o 51f95a9f148558b3 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 diff --git a/cmake-build-debug/CMakeFiles/Exercices.dir/main.c.o b/cmake-build-debug/CMakeFiles/Exercices.dir/main.c.o index 1d68cee..86c9ae6 100644 Binary files a/cmake-build-debug/CMakeFiles/Exercices.dir/main.c.o and b/cmake-build-debug/CMakeFiles/Exercices.dir/main.c.o differ diff --git a/cmake-build-debug/Exercices b/cmake-build-debug/Exercices index 4c5346c..2d82485 100755 Binary files a/cmake-build-debug/Exercices and b/cmake-build-debug/Exercices differ diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index 9758b96..22e23c2 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -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 diff --git a/main.c b/main.c index f9082bf..f502975 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,7 @@ #include #include #include +#include // Variables const int size=8; @@ -134,13 +135,14 @@ void hiddennumber() { } } } - char again; + char again[1]; printf("Play again ? (o/n) "); - scanf("%c", again); - if (again=='y') { + scanf("%s", &again); + + if (again[0]=='o') { hiddennumber(); } - else if (again=='n') { + else if (again[0]=='n') { printf("Until next time ! \n"); } }