Ajout des fichiers des séances précédentes

This commit is contained in:
Simoes Lukas 2024-09-10 14:03:34 +02:00
parent db750e42fa
commit 1533259a4d
16 changed files with 3340 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

644
DEV1.1/TP01/intermediaire.i Normal file

File diff suppressed because it is too large Load Diff

10
DEV1.1/TP01/salut.c Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

17
DEV1.1/TP03/extraction.c Normal file
View File

@ -0,0 +1,17 @@
# include <stdlib.h>
# include <stdio.h>
int main(void) {
char annee1;
char annee2;
char mois1;
char mois2;
printf("Quel est votre numéro de sécurité sociale ?\n");
getchar();
annee1 = getchar();
annee2 = getchar();
mois1 = getchar();
mois2 = getchar();
printf("%c%c/%c%c\n", mois1, mois2, annee1, annee2);
return EXIT_SUCCESS;
}

View File

@ -0,0 +1 @@
# s

10
DEV1.1/TP03/minuscule.c Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c", ('a' - 32));
return EXIT_SUCCESS;
}

22
DEV1.1/TP03/salut.c Normal file
View File

@ -0,0 +1,22 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c", 'H');
printf("%c", 'e');
printf("%c", 'l');
printf("%c", 'l');
printf("%c", 'o');
printf("%c", ' ');
printf("%c", 'w');
printf("%c", 'o');
printf("%c", 'r');
printf("%c", 'l');
printf("%c", 'd');
printf("%c", '!');
printf("%c", '\n');
return EXIT_SUCCESS;
}

10
DEV1.1/TP03/sept.c Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c", '\67');
return EXIT_SUCCESS;
}

10
DEV1.1/TP03/test.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Unicode : %c%c\n", '\xC3', '\xAE');
printf("Latin 1 : %c\n", '\xEE');
return EXIT_SUCCESS;
}
/* On en déduit que le caractère î n'existe pas en Latin 1 */