commit 6dbd74db95212d8e55497cba63a6ce4d41ba2fed Author: dacostaj Date: Mon Sep 14 10:11:56 2026 +0200 Ajout des fichiers des séances précédentes diff --git a/DEV1.1/TP01/a.out b/DEV1.1/TP01/a.out new file mode 100755 index 0000000..50541d7 Binary files /dev/null and b/DEV1.1/TP01/a.out differ diff --git a/DEV1.1/TP01/salut b/DEV1.1/TP01/salut new file mode 100755 index 0000000..50541d7 Binary files /dev/null and b/DEV1.1/TP01/salut differ diff --git a/DEV1.1/TP01/salut.c b/DEV1.1/TP01/salut.c new file mode 100644 index 0000000..0d8c4f4 --- /dev/null +++ b/DEV1.1/TP01/salut.c @@ -0,0 +1,10 @@ +/* premier programme */ + +#include +#include + +int main(void) { + printf("Hello World!\n"); + return EXIT_SUCCESS; +} + diff --git a/DEV1.1/TP02/bases b/DEV1.1/TP02/bases new file mode 100755 index 0000000..64c56ab Binary files /dev/null and b/DEV1.1/TP02/bases differ diff --git a/DEV1.1/TP02/bases.c b/DEV1.1/TP02/bases.c new file mode 100644 index 0000000..7cebf77 --- /dev/null +++ b/DEV1.1/TP02/bases.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) { + printf("%d\n", 72); + printf("%d\n", 0110); + printf("%d\n", 0x48); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/TP02/limites b/DEV1.1/TP02/limites new file mode 100755 index 0000000..8abb25c Binary files /dev/null and b/DEV1.1/TP02/limites differ diff --git a/DEV1.1/TP02/limites.c b/DEV1.1/TP02/limites.c new file mode 100644 index 0000000..24ab325 --- /dev/null +++ b/DEV1.1/TP02/limites.c @@ -0,0 +1,12 @@ +#include +#include +#include + +int main(void) { + int n = 1; + while (n >= 0){ + printf("%d\n", n); + n=n*2; + } + printf("%d\n", n); +} \ No newline at end of file diff --git a/DEV1.1/TP02/reponses b/DEV1.1/TP02/reponses new file mode 100755 index 0000000..4e26ddb Binary files /dev/null and b/DEV1.1/TP02/reponses differ diff --git a/DEV1.1/TP02/reponses.c b/DEV1.1/TP02/reponses.c new file mode 100644 index 0000000..50c2654 --- /dev/null +++ b/DEV1.1/TP02/reponses.c @@ -0,0 +1,17 @@ +#include +#include + +int main(void) { + printf("%d\n", 100/6); + printf("%d\n", 100%6); + printf("%d\n", 0x1A*015); + printf("%d\n", -3/5); + printf("%d\n", -31/5); + printf("%d\n", -31%5); + printf("%d\n", 100*(3/5)); + printf("%d\n", 100*3/5); + printf("%d\n", 2-3-5); + printf("%d\n", 2-(3-5)); + printf(La plus grande valeur est : ) + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/TP03/salut b/DEV1.1/TP03/salut new file mode 100755 index 0000000..8727584 Binary files /dev/null and b/DEV1.1/TP03/salut differ diff --git a/DEV1.1/TP03/salut.c b/DEV1.1/TP03/salut.c new file mode 100644 index 0000000..beaf354 --- /dev/null +++ b/DEV1.1/TP03/salut.c @@ -0,0 +1,21 @@ +/* premier programme */ + +#include +#include + +int main(void) { + printf("H\n"); + printf("e\n"); + printf("l\n"); + printf("l\n"); + printf("o\n"); + printf(" \n"); + printf("W\n"); + printf("o\n"); + printf("r\n"); + printf("l\n"); + printf("d\n"); + printf("!\n"); + return EXIT_SUCCESS; +} + diff --git a/DEV1.1/TP03/show7 b/DEV1.1/TP03/show7 new file mode 100755 index 0000000..5daf8f4 Binary files /dev/null and b/DEV1.1/TP03/show7 differ diff --git a/DEV1.1/TP03/show7.c b/DEV1.1/TP03/show7.c new file mode 100644 index 0000000..1b63827 --- /dev/null +++ b/DEV1.1/TP03/show7.c @@ -0,0 +1,6 @@ +#include +#include + +int main(void) { + printf("%c\n", '\x37'); +} \ No newline at end of file diff --git a/DEV1.1/TP03/showA b/DEV1.1/TP03/showA new file mode 100755 index 0000000..3388d95 Binary files /dev/null and b/DEV1.1/TP03/showA differ diff --git a/DEV1.1/TP03/showA.c b/DEV1.1/TP03/showA.c new file mode 100644 index 0000000..f0f916f --- /dev/null +++ b/DEV1.1/TP03/showA.c @@ -0,0 +1,6 @@ +#include +#include + +int main(void) { + printf("%c\n", '\x41'); +} \ No newline at end of file diff --git a/DEV1.1/TP03/showi b/DEV1.1/TP03/showi new file mode 100755 index 0000000..915aa6e Binary files /dev/null and b/DEV1.1/TP03/showi differ diff --git a/DEV1.1/TP03/showi.c b/DEV1.1/TP03/showi.c new file mode 100644 index 0000000..53eec84 --- /dev/null +++ b/DEV1.1/TP03/showi.c @@ -0,0 +1,8 @@ +#include +#include + +int main(void) { + printf("Unicode : %c%c\n", '\xC3', '\xAE'); + printf("Latin 1 : %c\n", '\xEE'); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/.fi112 b/SCR1.1/TP01/AA/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi111 b/SCR1.1/TP01/AA/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi113 b/SCR1.1/TP01/AA/DIR1/DIR11/fi113 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/DIR11/fi31 b/SCR1.1/TP01/AA/DIR1/DIR11/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR1/fi11 b/SCR1.1/TP01/AA/DIR1/fi11 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR3/fi11 b/SCR1.1/TP01/AA/DIR3/fi11 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/AA/DIR3/fi31 b/SCR1.1/TP01/AA/DIR3/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR1/DIR11/.fi112 b/SCR1.1/TP01/BB/DIR1/DIR11/.fi112 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR1/DIR11/fi111 b/SCR1.1/TP01/BB/DIR1/DIR11/fi111 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR1/DIR11/fi31 b/SCR1.1/TP01/BB/DIR1/DIR11/fi31 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR2/fi21 b/SCR1.1/TP01/BB/DIR2/fi21 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR3/fi11 b/SCR1.1/TP01/BB/DIR3/fi11 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/BB/DIR3/fi32 b/SCR1.1/TP01/BB/DIR3/fi32 new file mode 100644 index 0000000..e69de29 diff --git a/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt b/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt new file mode 100644 index 0000000..8c9b02d --- /dev/null +++ b/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt @@ -0,0 +1,12 @@ + +I. + 1. id + 2. uname -m + 3. Dans mon repertoire domicile "dacostaj" + 4. /etc/ contient énormément de fichier + +II. + 1. dacostaj + 2. cd /etc/ + 3. cd + diff --git a/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt~ b/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt~ new file mode 100644 index 0000000..b478595 --- /dev/null +++ b/SCR1.1/TP01/dacostaj-7-tp01-reponses.txt~ @@ -0,0 +1 @@ +s