update
This commit is contained in:
BIN
DEV.1.1/cours-java/1 La compilation.docx
Normal file
BIN
DEV.1.1/cours-java/1 La compilation.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/10 Chaînes de caractères.docx
Normal file
BIN
DEV.1.1/cours-java/10 Chaînes de caractères.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/11 Fonctions.docx
Normal file
BIN
DEV.1.1/cours-java/11 Fonctions.docx
Normal file
Binary file not shown.
0
DEV.1.1/cours-java/12 Organisation du code.docx
Normal file
0
DEV.1.1/cours-java/12 Organisation du code.docx
Normal file
BIN
DEV.1.1/cours-java/13 Allocation dynamique.docx
Normal file
BIN
DEV.1.1/cours-java/13 Allocation dynamique.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/14 Les structures.docx
Normal file
BIN
DEV.1.1/cours-java/14 Les structures.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/15 Les fichiers.docx
Normal file
BIN
DEV.1.1/cours-java/15 Les fichiers.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/15.01 Les fichiers exercices.pdf
Normal file
BIN
DEV.1.1/cours-java/15.01 Les fichiers exercices.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
DEV.1.1/cours-java/17 Liste chaînées.docx
Normal file
BIN
DEV.1.1/cours-java/17 Liste chaînées.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/17.01.docx
Normal file
BIN
DEV.1.1/cours-java/17.01.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/18 Les constantes nommées.docx
Normal file
BIN
DEV.1.1/cours-java/18 Les constantes nommées.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/19 La récursivité.docx
Normal file
BIN
DEV.1.1/cours-java/19 La récursivité.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/19.01.docx
Normal file
BIN
DEV.1.1/cours-java/19.01.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/2 Les caractères.docx
Normal file
BIN
DEV.1.1/cours-java/2 Les caractères.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/20 Piles et Files.docx
Normal file
BIN
DEV.1.1/cours-java/20 Piles et Files.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/20.01 Comment coder une File-Pile.docx
Normal file
BIN
DEV.1.1/cours-java/20.01 Comment coder une File-Pile.docx
Normal file
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
#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
|
||||
}
|
||||
|
||||
int main(void){
|
||||
return 0;
|
||||
}
|
BIN
DEV.1.1/cours-java/20.01 représentation-file-listechainée.png
Normal file
BIN
DEV.1.1/cours-java/20.01 représentation-file-listechainée.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,25 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
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;
|
||||
}
|
BIN
DEV.1.1/cours-java/3 Conditions et structure conditionelle.odt
Normal file
BIN
DEV.1.1/cours-java/3 Conditions et structure conditionelle.odt
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/4 Boucles.docx
Normal file
BIN
DEV.1.1/cours-java/4 Boucles.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/5 Types.docx
Normal file
BIN
DEV.1.1/cours-java/5 Types.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/7 Les Tableaux.docx
Normal file
BIN
DEV.1.1/cours-java/7 Les Tableaux.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/8 Les Tableaux multidimensionnels.docx
Normal file
BIN
DEV.1.1/cours-java/8 Les Tableaux multidimensionnels.docx
Normal file
Binary file not shown.
BIN
DEV.1.1/cours-java/note TP DEV.docx
Normal file
BIN
DEV.1.1/cours-java/note TP DEV.docx
Normal file
Binary file not shown.
0
DEV.1.1/cours-java/salut.c
Normal file
0
DEV.1.1/cours-java/salut.c
Normal file
Reference in New Issue
Block a user