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 : --------------------------//
//
//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); //
//
//Initialisation de fonctions : //
//
void menu(void); //Fonctions relatives aux listes chaînées : --// //
int existe(MaillonDep* liste, char* mot); // //
//Fonctions relatives aux listes chaînées : // // //
int existe(Listedep liste, char* mot); int recherche(MaillonDep* liste, char* mot); // //
//----------------------------------// //--------------------------------------------// //
//
//Fonctions relatives aux piles : // //
Pile creerpile(int tmax); // //
// //Fonctions relatives aux piles : --// //
void empiler(Pile p, int x); // Pile creerpile(int tmax); // //
// // //
void afficherPileEntier(Pile p); // void empiler(Pile p, int x); // //
// // //
int depiler(Pile p); // 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 files : --// //
void afficherFileEntier(File f); // File creerfile(int tmax); // //
// // //
int defiler(File f); // void enfiler(File f, int x); // //
// // //
void vider_file(File f); // void afficherFileEntier(File f); // //
//----------------------------------// // //
int defiler(File f); // //
void reset(void); // //
void vider_file(File f); // //
//----------------------------------// //
//
//
//
void reset(void); //
//------------------------------------------------------//
Loading…
Cancel
Save