Upload files to "coursDEV.1.1"

This commit is contained in:
2024-12-16 13:57:45 +01:00
parent 6bcd12a191
commit 37e446375a
5 changed files with 28 additions and 0 deletions

BIN
coursDEV.1.1/19.01.docx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,28 @@
#include <stdio.h>
#include <stdlib.h>
/*Définissez les types nécessaires pour une file de caractères :*/
struct maillon_s {
char valeurs;
struct maillon_s* suivant;
};
struct file_s {
struct maillon_s* premier;
struct maillon_s* dernier;
}
typedef struct maillon_s maillon;
typedef struct file_s file;
char dequeue(file* f){
maillon m = *(f->premier); /*je fais une copie de tout ce qu'il y a dans le maillo A*/
free(f->premier);
f->premier = m.suivant;
if(f->premier==NULL){
f->dernier=NULL;
}
return m.valeur
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB