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 : ");
}
//Listes chainées
int existe(MaillonDep* liste, char* mot){
break//A Faire !
}
int recherche(MaillonDep* liste, char* mot){
break//A Faire !
}
//Pile
Pile creerpile(int tmax)
{

@ -1,54 +1,69 @@
//Pile
//Définition des structures : --------------------------//
//
//Piles : ------------------// //
typedef struct pile // //
{ // //
int tlogi; // //
int tmax; // //
int* tab; // //
} pile; // //
typedef struct pile* Pile; // //
//--------------------------// //
//
//
//
//Files : ------------------// //
typedef struct file // //
{ // //
Pile pEntry; // //
Pile pExit; // //
int* tab; // //
} file; // //
typedef struct file* File; // //
//--------------------------// //
//------------------------------------------------------//
typedef struct pile
{
int tlogi;
int tmax;
int* tab;
} pile;
typedef struct pile* Pile;
//File
typedef struct 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 : //
Pile creerpile(int tmax); //
//
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);
//Initialisation de fonctions : ------------------------//
//
void menu(void); //
//
//
//
//Fonctions relatives aux listes chaînées : --// //
int existe(MaillonDep* liste, char* mot); // //
// //
int recherche(MaillonDep* liste, char* mot); // //
//--------------------------------------------// //
//
//
//
//Fonctions relatives aux piles : --// //
Pile creerpile(int tmax); // //
// //
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