Ajout de fonctions de listes chainées et refonte de la séparation des fonctions dans saeAnnexe.h

master
Yann CHAMPEAU 3 years ago
parent 2cba3d3e34
commit 6ebc948a37

@ -16,6 +16,15 @@ void menu(void){
printf("Choisissez votre session : "); printf("Choisissez votre session : ");
} }
//Listes chainées
int existe(MaillonDep* liste, char* mot){
break//A Faire !
}
int recherche(MaillonDep* liste, char* mot){
break//A Faire !
}
//Pile //Pile
Pile creerpile(int tmax) Pile creerpile(int tmax)
{ {

@ -1,54 +1,69 @@
//Pile //Définition des structures : --------------------------//
//
typedef struct pile //Piles : ------------------// //
{ typedef struct pile // //
int tlogi; { // //
int tmax; int tlogi; // //
int* tab; int tmax; // //
} pile; int* tab; // //
typedef struct pile* Pile; } pile; // //
typedef struct pile* Pile; // //
//File //--------------------------// //
typedef struct file //
{ //
Pile pEntry; //
Pile pExit; //Files : ------------------// //
int* tab; typedef struct file // //
} file; { // //
typedef struct file* File; Pile pEntry; // //
Pile pExit; // //
int* tab; // //
} file; // //
typedef struct file* File; // //
//--------------------------// //
//Initialisation de fonctions : //------------------------------------------------------//
void menu(void);
//Fonctions relatives aux listes chaînées : //
int existe(Listedep liste, char* mot);
//----------------------------------//
//Fonctions relatives aux piles : // //Initialisation de fonctions : ------------------------//
Pile creerpile(int tmax); //
// //
void empiler(Pile p, int x); // void menu(void); //
// //
void afficherPileEntier(Pile p); //
// //
int depiler(Pile p); //
//----------------------------------//
//Fonctions relatives aux files : //
File creerfile(int tmax); //
// //
void enfiler(File f, int x); // //Fonctions relatives aux listes chaînées : --// //
int existe(MaillonDep* liste, char* mot); // //
// //
int recherche(MaillonDep* liste, char* mot); // //
//--------------------------------------------// //
// //
void afficherFileEntier(File f); //
// //
int defiler(File f); //
// //
void vider_file(File f); // //Fonctions relatives aux piles : --// //
//----------------------------------// Pile creerpile(int tmax); // //
// //
void reset(void); void empiler(Pile p, int x); // //
// //
void afficherPileEntier(Pile p); // //
// //
int depiler(Pile p); // //
//----------------------------------// //
//
//
//
//Fonctions relatives aux files : --// //
File creerfile(int tmax); // //
// //
void enfiler(File f, int x); // //
// //
void afficherFileEntier(File f); // //
// //
int defiler(File f); // //
// //
void vider_file(File f); // //
//----------------------------------// //
//
//
//
void reset(void); //
//------------------------------------------------------//
Loading…
Cancel
Save