From 41b3074d5867e14a5aa3163b1260a46c59a000c1 Mon Sep 17 00:00:00 2001 From: Emmanuel SRIVASTAVA TIAMZON Date: Mon, 16 Dec 2024 14:05:49 +0100 Subject: [PATCH] Upload files to "coursDEV.1.1" --- ...01-structure-rassemblant-infofile-char.txt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 coursDEV.1.1/20.01-structure-rassemblant-infofile-char.txt diff --git a/coursDEV.1.1/20.01-structure-rassemblant-infofile-char.txt b/coursDEV.1.1/20.01-structure-rassemblant-infofile-char.txt new file mode 100644 index 0000000..d0b1c1d --- /dev/null +++ b/coursDEV.1.1/20.01-structure-rassemblant-infofile-char.txt @@ -0,0 +1,25 @@ +#include +#include + +typedef struct { + char tab[50]; + int indice_debut; + int indice_fin; + int taille; +} car_file; + + +char dequeue(car_file* f){ + f->indice_debut=(f->indice_debut+1)%50; + f-taille--; + return f->tab[(f->indice_debut+49)%50]; +} + + + + +int main(void){ + + + return 0; +} \ No newline at end of file